Showing the changes to libraries/script-engine/src/SceneScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -62,6 +62,30 @@ float SceneScriptingInterface::getSunIntensity() const { · 61 unmodified lines | |||
| 62 | return _skyStage->getSunIntensity(); | 62 | return _skyStage->getSunIntensity(); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | void SceneScriptingInterface::setSunAmbientIntensity(float intensity) { | ||
| 66 | _skyStage->setSunAmbientIntensity(intensity); | ||
| 67 | } | ||
| 68 | |||
| 69 | float SceneScriptingInterface::getSunAmbientIntensity() const { | ||
| 70 | return _skyStage->getSunAmbientIntensity(); | ||
| 71 | } | ||
| 72 | |||
| 73 | void SceneScriptingInterface::setSunDirection(const glm::vec3& direction) { | ||
| 74 | _skyStage->setSunDirection(direction); | ||
| 75 | } | ||
| 76 | |||
| 77 | const glm::vec3& SceneScriptingInterface::getSunDirection() const { | ||
| 78 | return _skyStage->getSunDirection(); | ||
| 79 | } | ||
| 80 | |||
| 81 | void SceneScriptingInterface::setStageEarthSunModelEnable(bool isEnabled) { | ||
| 82 | _skyStage->setEarthSunModelEnable(isEnabled); | ||
| 83 | } | ||
| 84 | |||
| 85 | bool SceneScriptingInterface::isStageEarthSunModelEnabled() const { | ||
| 86 | return _skyStage->isEarthSunModelEnabled(); | ||
| 87 | } | ||
| 88 | |||
| 65 | model::SunSkyStagePointer SceneScriptingInterface::getSkyStage() const { | 89 | model::SunSkyStagePointer SceneScriptingInterface::getSkyStage() const { |
| 66 | return _skyStage; | 90 | return _skyStage; |
| 67 | } | 91 | } |