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

This commit is contained in:
Nehon 2014-06-29 18:40:31 +02:00
parent fa41da59a4
commit a11bfa5e63

View File

@ -575,7 +575,7 @@ public class RenderManager {
Geometry gm = (Geometry) s; Geometry gm = (Geometry) s;
RenderQueue.ShadowMode shadowMode = s.getShadowMode(); 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 //forcing adding to shadow cast mode, culled objects doesn't have to be in the receiver queue
rq.addToShadowQueue(gm, RenderQueue.ShadowMode.Cast); rq.addToShadowQueue(gm, RenderQueue.ShadowMode.Cast);
} }