History

Bring back the procedural skybox

samcake committed 11 years ago

Commit fa9b0931 parent 43d96af8 files · +23 −15Browse files

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

Unified · Split

libraries/script-engine/src/SceneScriptingInterface.cpp+7−2
@@ -9,12 +9,17 @@ · 8 unmodified lines
99 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
1010 //
1111
12+#include "SceneScriptingInterface.h"
13+
1214 #include <AddressManager.h>
1315
14−#include "SceneScriptingInterface.h"
1516
16−#include "SceneScriptingInterface.h"
17+#include <procedural/ProceduralSkybox.h>
1718
19+SceneScriptingInterface::SceneScriptingInterface() {
20+ // Let's make sure the sunSkyStage is using a proceduralSKybox
21+ _skyStage->setSkybox(model::SkyboxPointer(new ProceduralSkybox()));
22+}
1823
1924 void SceneScriptingInterface::setStageOrientation(const glm::quat& orientation) {
2025 _skyStage->setOriginOrientation(orientation);