Showing the changes to libraries/script-engine/src/SceneScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -46,44 +46,44 @@ int SceneScriptingInterface::getStageYearTime() const { · 45 unmodified lines | ||
| 46 | 46 | return _skyStage->getYearTime(); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | −void SceneScriptingInterface::setSunColor(const glm::vec3& color) { | |
| 49 | +void SceneScriptingInterface::setKeyLightColor(const glm::vec3& color) { | |
| 50 | 50 | _skyStage->setSunColor(color); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | −glm::vec3 SceneScriptingInterface::getSunColor() const { | |
| 53 | +glm::vec3 SceneScriptingInterface::getKeyLightColor() const { | |
| 54 | 54 | return _skyStage->getSunColor(); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | −void SceneScriptingInterface::setSunIntensity(float intensity) { | |
| 57 | +void SceneScriptingInterface::setKeyLightIntensity(float intensity) { | |
| 58 | 58 | _skyStage->setSunIntensity(intensity); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | −float SceneScriptingInterface::getSunIntensity() const { | |
| 61 | +float SceneScriptingInterface::getKeyLightIntensity() const { | |
| 62 | 62 | return _skyStage->getSunIntensity(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | −void SceneScriptingInterface::setSunAmbientIntensity(float intensity) { | |
| 65 | +void SceneScriptingInterface::setKeyLightAmbientIntensity(float intensity) { | |
| 66 | 66 | _skyStage->setSunAmbientIntensity(intensity); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | −float SceneScriptingInterface::getSunAmbientIntensity() const { | |
| 69 | +float SceneScriptingInterface::getKeyLightAmbientIntensity() const { | |
| 70 | 70 | return _skyStage->getSunAmbientIntensity(); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | −void SceneScriptingInterface::setSunDirection(const glm::vec3& direction) { | |
| 73 | +void SceneScriptingInterface::setKeyLightDirection(const glm::vec3& direction) { | |
| 74 | 74 | _skyStage->setSunDirection(direction); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | −glm::vec3 SceneScriptingInterface::getSunDirection() const { | |
| 77 | +glm::vec3 SceneScriptingInterface::getKeyLightDirection() const { | |
| 78 | 78 | return _skyStage->getSunDirection(); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | −void SceneScriptingInterface::setStageEarthSunModelEnable(bool isEnabled) { | |
| 82 | − _skyStage->setEarthSunModelEnable(isEnabled); | |
| 81 | +void SceneScriptingInterface::setStageSunModelEnable(bool isEnabled) { | |
| 82 | + _skyStage->setSunModelEnable(isEnabled); | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | −bool SceneScriptingInterface::isStageEarthSunModelEnabled() const { | |
| 86 | − return _skyStage->isEarthSunModelEnabled(); | |
| 85 | +bool SceneScriptingInterface::isStageSunModelEnabled() const { | |
| 86 | + return _skyStage->isSunModelEnabled(); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | model::SunSkyStagePointer SceneScriptingInterface::getSkyStage() const { |