From f54821f9968913fc705c55f022dd43d9dba62fcc Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Tue, 21 Apr 2015 11:12:01 -0700 Subject: [PATCH] more details in the comments --- libraries/script-engine/src/SceneScriptingInterface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/script-engine/src/SceneScriptingInterface.h b/libraries/script-engine/src/SceneScriptingInterface.h index 4c1a4e5da1..c384153a0f 100644 --- a/libraries/script-engine/src/SceneScriptingInterface.h +++ b/libraries/script-engine/src/SceneScriptingInterface.h @@ -38,6 +38,8 @@ public: Q_INVOKABLE void setStageYearTime(int day); Q_INVOKABLE int getStageYearTime() const; + // Enable/disable the stage sun model which uses the key light to simulate + // the sun light based on the location of the stage trelative to earth and the current time Q_INVOKABLE void setStageSunModelEnable(bool isEnabled); Q_INVOKABLE bool isStageSunModelEnabled() const; @@ -49,7 +51,7 @@ public: Q_INVOKABLE void setKeyLightAmbientIntensity(float intensity); Q_INVOKABLE float getKeyLightAmbientIntensity() const; - // Only valid if stage Earth Sun model is disabled + // setKeyLightDIrection is only effective if stage Sun model is disabled Q_INVOKABLE void setKeyLightDirection(const glm::vec3& direction); Q_INVOKABLE glm::vec3 getKeyLightDirection() const;