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
9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10//10//
11 11
12#include "SceneScriptingInterface.h"
13
12#include <AddressManager.h>14#include <AddressManager.h>
13 15
14#include "SceneScriptingInterface.h"
15 16
16#include "SceneScriptingInterface.h"17#include <procedural/ProceduralSkybox.h>
17 18
19SceneScriptingInterface::SceneScriptingInterface() {
20 // Let's make sure the sunSkyStage is using a proceduralSKybox
21 _skyStage->setSkybox(model::SkyboxPointer(new ProceduralSkybox()));
22}
18 23
19void SceneScriptingInterface::setStageOrientation(const glm::quat& orientation) {24void SceneScriptingInterface::setStageOrientation(const glm::quat& orientation) {
20 _skyStage->setOriginOrientation(orientation);25 _skyStage->setOriginOrientation(orientation);