Fixed a bug where grouped geom were rendered in shadow pre-pass because they were still in the shadow cast queue

experimental
Nehon 11 years ago
parent fa41da59a4
commit a11bfa5e63
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/RenderManager.java

@ -575,7 +575,7 @@ public class RenderManager {
Geometry gm = (Geometry) s;
RenderQueue.ShadowMode shadowMode = s.getShadowMode();
if (shadowMode != RenderQueue.ShadowMode.Off && shadowMode != RenderQueue.ShadowMode.Receive) {
if (shadowMode != RenderQueue.ShadowMode.Off && shadowMode != RenderQueue.ShadowMode.Receive && !gm.isGrouped()) {
//forcing adding to shadow cast mode, culled objects doesn't have to be in the receiver queue
rq.addToShadowQueue(gm, RenderQueue.ShadowMode.Cast);
}

Loading…
Cancel
Save