- 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
3.0
rem..om 13 years ago
parent 84116c85f8
commit 444223b905
  1. 2
      engine/src/core/com/jme3/renderer/RenderManager.java

@ -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…
Cancel
Save