|
|
@ -421,8 +421,8 @@ public class PssmShadowRenderer implements SceneProcessor { |
|
|
|
//Updating shadow cam with curent split frustra
|
|
|
|
//Updating shadow cam with curent split frustra
|
|
|
|
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]); |
|
|
|