|
|
@ -93,7 +93,7 @@ public class PreShadowArrayRenderer implements SceneProcessor { |
|
|
|
points[i] = new Vector3f(); |
|
|
|
points[i] = new Vector3f(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
prePassRenderState.setFaceCullMode(RenderState.FaceCullMode.Front); |
|
|
|
prePassRenderState.setFaceCullMode(RenderState.FaceCullMode.Back); |
|
|
|
prePassRenderState.setColorWrite(false); |
|
|
|
prePassRenderState.setColorWrite(false); |
|
|
|
prePassRenderState.setDepthWrite(true); |
|
|
|
prePassRenderState.setDepthWrite(true); |
|
|
|
prePassRenderState.setDepthTest(true); |
|
|
|
prePassRenderState.setDepthTest(true); |
|
|
@ -134,7 +134,7 @@ public class PreShadowArrayRenderer implements SceneProcessor { |
|
|
|
public void addLight(Light light) { |
|
|
|
public void addLight(Light light) { |
|
|
|
if (array.getImage() == null) { |
|
|
|
if (array.getImage() == null) { |
|
|
|
array.setImage(new Image( |
|
|
|
array.setImage(new Image( |
|
|
|
Format.Depth32F, |
|
|
|
Format.Depth16, |
|
|
|
textureSize, |
|
|
|
textureSize, |
|
|
|
textureSize, |
|
|
|
textureSize, |
|
|
|
0, |
|
|
|
0, |
|
|
|