summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/StudioRendererTranslation.h
diff options
context:
space:
mode:
authorJanne Kangas <janne.kangas@qt.io>2018-06-06 10:09:01 +0300
committerJanne Kangas <janne.kangas@qt.io>2018-06-18 11:41:23 +0000
commit5714008022d0a70b9c176fea1b721b5ae74f5ccc (patch)
tree4568a623195eed57687984fecebd602e26a6b660 /src/Authoring/Studio/Render/StudioRendererTranslation.h
parentc5ea9e8ce658bcc633cd2e0b4b587af4671af5a6 (diff)
Reset effect when user changes effect parameters
Fix resets the (corona) effect accumulation that would eventually paint the entire screen for Fade parameter 1.0. Now changing any parameters for the effect resets the effect and allows the user to see the actual impact of current parameters without carryover from previously rendered frames, for shader effects that accumulate. Task-ID: QT3DS-155 Change-Id: I01541ff7fbff018502e41c2a45f551c0a6647a4a Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRendererTranslation.h')
-rw-r--r--src/Authoring/Studio/Render/StudioRendererTranslation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Render/StudioRendererTranslation.h b/src/Authoring/Studio/Render/StudioRendererTranslation.h
index b6219a55..706b505a 100644
--- a/src/Authoring/Studio/Render/StudioRendererTranslation.h
+++ b/src/Authoring/Studio/Render/StudioRendererTranslation.h
@@ -94,6 +94,7 @@ namespace studio {
virtual void SetActive(bool inActive) = 0;
virtual void ClearChildren() = 0;
virtual void AppendChild(SGraphObject &inChild) = 0;
+ virtual void ResetEffect() {}
virtual SGraphObject &GetGraphObject() { return *m_GraphObject; }
virtual SGraphObject &GetNonAliasedGraphObject() { return *m_GraphObject; }
virtual qt3dsdm::Qt3DSDMInstanceHandle GetInstanceHandle() { return m_InstanceHandle; }