Forráskód Böngészése

Update csm frustums when resizing window

Garrett Johnson 5 éve
szülő
commit
973e03e84c
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      examples/webgl_shadowmap_csm.html

+ 1 - 0
examples/webgl_shadowmap_csm.html

@@ -212,6 +212,7 @@
 					camera.updateProjectionMatrix();
 					camera.updateProjectionMatrix();
 
 
 					updateOrthoCamera();
 					updateOrthoCamera();
+					csm.updateFrustums();
 
 
 					renderer.setSize( window.innerWidth, window.innerHeight );
 					renderer.setSize( window.innerWidth, window.innerHeight );