- Excluded spatials that have a cullHint.Always from shadow queues
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8466 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
84116c85f8
commit
444223b905
@ -774,7 +774,7 @@ public class RenderManager {
|
||||
// check culling first.
|
||||
if (!scene.checkCulling(vp.getCamera())) {
|
||||
// move on to shadow-only render
|
||||
if (scene.getShadowMode() != RenderQueue.ShadowMode.Off || scene instanceof Node) {
|
||||
if ((scene.getShadowMode() != RenderQueue.ShadowMode.Off || scene instanceof Node) && scene.getCullHint()!=Spatial.CullHint.Always) {
|
||||
renderShadow(scene, vp.getQueue());
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user