use 16-bit depth by default

in-pass-shadows
Kirill Vainer 7 years ago
parent c136a4212e
commit c3cfab65c6
  1. 4
      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,

Loading…
Cancel
Save