Browse Source

Update csm frustums when resizing window

Garrett Johnson 5 năm trước cách đây
mục cha
commit
973e03e84c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      examples/webgl_shadowmap_csm.html

+ 1 - 0
examples/webgl_shadowmap_csm.html

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