From c3cfab65c650eff51748949f296801d93d058d5d Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sun, 17 Sep 2017 22:28:31 -0400 Subject: [PATCH] use 16-bit depth by default --- .../java/com/jme3/shadow/next/PreShadowArrayRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/shadow/next/PreShadowArrayRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/next/PreShadowArrayRenderer.java index 78b9507fe..1d2d11ae8 100755 --- a/jme3-core/src/main/java/com/jme3/shadow/next/PreShadowArrayRenderer.java +++ b/jme3-core/src/main/java/com/jme3/shadow/next/PreShadowArrayRenderer.java @@ -93,7 +93,7 @@ public class PreShadowArrayRenderer implements SceneProcessor { points[i] = new Vector3f(); } - prePassRenderState.setFaceCullMode(RenderState.FaceCullMode.Front); + prePassRenderState.setFaceCullMode(RenderState.FaceCullMode.Back); prePassRenderState.setColorWrite(false); prePassRenderState.setDepthWrite(true); prePassRenderState.setDepthTest(true); @@ -134,7 +134,7 @@ public class PreShadowArrayRenderer implements SceneProcessor { public void addLight(Light light) { if (array.getImage() == null) { array.setImage(new Image( - Format.Depth32F, + Format.Depth16, textureSize, textureSize, 0,