Commits

Michael Ludwig committed e6bf654

Actually fix missing shadow maps, and re-enable fog.

  • Participants
  • Parent commits f54cceb

Comments (0)

Files changed (2)

File ferox-scene/src/main/java/com/ferox/scene/controller/ffp/FixedFunctionRenderTask.java

                                                     Frame frame, final Surface surface) {
         // static tree construction that doesn't depend on entities
         final StateNode root = new StateNode(new CameraState(camera)); // children = lit, unlit or fog
-        StateNode fogNode = null; //getFog(camera);
+        StateNode fogNode = getFog(camera);
         StateNode litNode = new StateNode(frame.litState); // child = shadowmap state
         StateNode unlitNode = new StateNode(frame.unlitState); // child = texture states
         StateNode smNode = new StateNode(new ShadowMapState(frame.shadowMap,

File ferox-scene/src/main/java/com/ferox/scene/controller/ffp/ShadowMapCache.java

         Map<RenderState, Integer> renderState = new HashMap<RenderState, Integer>();
         for (Entity e : pvs.getPotentiallyVisibleSet()) {
             e.get(renderable);
+            e.get(transform);
 
             geom.set(renderable.getVertices(), null); // don't need normals
             render.set(renderable.getPolygonType(), renderable.getIndices(),