Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 929 vs 930 for /trunk/Source Code/Environment/Sky/Sky.cpp

Diff revisions: vs.
  @@ -103,13 +103,6 @@
103 103 SceneNode::postLoad(sgn);
104 104 }
105 105
106 - void Sky::sceneUpdate(const U64 deltaTime,
107 - SceneGraphNode& sgn,
108 - SceneState& sceneState) {
109 -
110 - SceneNode::sceneUpdate(deltaTime, sgn, sceneState);
111 - }
112 -
113 106 bool Sky::onRender(const RenderStagePass& renderStagePass) {
114 107 return _sky->onRender(renderStagePass);
115 108 }
  @@ -117,6 +110,10 @@
117 110 void Sky::buildDrawCommands(SceneGraphNode& sgn,
118 111 const RenderStagePass& renderStagePass,
119 112 RenderPackage& pkgInOut) {
113 + if (renderStagePass.stage() == RenderStage::SHADOW) {
114 + return;
115 + }
116 +
120 117 GenericDrawCommand cmd;
121 118 cmd.sourceBuffer(_sky->getGeometryVB());
122 119 cmd.cmd().indexCount = _sky->getGeometryVB()->getIndexCount();