|
|
@ -422,7 +422,7 @@ public class PssmShadowRenderer implements SceneProcessor { |
|
|
|
ShadowUtil.updateShadowCamera(occluders, receivers, shadowCam, points, splitOccluders); |
|
|
|
ShadowUtil.updateShadowCamera(occluders, receivers, shadowCam, points, splitOccluders); |
|
|
|
|
|
|
|
|
|
|
|
//saving light view projection matrix for this split
|
|
|
|
//saving light view projection matrix for this split
|
|
|
|
lightViewProjectionsMatrices[i] = shadowCam.getViewProjectionMatrix().clone(); |
|
|
|
lightViewProjectionsMatrices[i].set(shadowCam.getViewProjectionMatrix()); |
|
|
|
renderManager.setCamera(shadowCam, false); |
|
|
|
renderManager.setCamera(shadowCam, false); |
|
|
|
|
|
|
|
|
|
|
|
r.setFrameBuffer(shadowFB[i]); |
|
|
|
r.setFrameBuffer(shadowFB[i]); |
|
|
|