History

Update the cookies.js to be able to edit and test direction and color, validate that the SunDirection and color and on/off is working

Sam Gateau committed 11 years ago

Commit 687ca7f1 parent 11879f66 files · +291 −53Browse files

Showing the changes to libraries/script-engine/src/SceneScriptingInterface.h (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/SceneScriptingInterface.h+2−2
@@ -43,7 +43,7 @@ public: · 42 unmodified lines
43 43
44 44
45 Q_INVOKABLE void setSunColor(const glm::vec3& color);45 Q_INVOKABLE void setSunColor(const glm::vec3& color);
46 Q_INVOKABLE const glm::vec3& getSunColor() const;46 Q_INVOKABLE glm::vec3 getSunColor() const;
47 Q_INVOKABLE void setSunIntensity(float intensity);47 Q_INVOKABLE void setSunIntensity(float intensity);
48 Q_INVOKABLE float getSunIntensity() const;48 Q_INVOKABLE float getSunIntensity() const;
49 Q_INVOKABLE void setSunAmbientIntensity(float intensity);49 Q_INVOKABLE void setSunAmbientIntensity(float intensity);
@@ -52,7 +52,7 @@ public: · 2 unmodified lines
52 // Only valid if stage Earth Sun model is disabled52 // Only valid if stage Earth Sun model is disabled
53 Q_INVOKABLE void setSunDirection(const glm::vec3& direction);53 Q_INVOKABLE void setSunDirection(const glm::vec3& direction);
54 54
55 Q_INVOKABLE const glm::vec3& getSunDirection() const;55 Q_INVOKABLE glm::vec3 getSunDirection() const;
56 56
57 57
58 58