Browse Source

Ensure camera.matrixWorld is up to date

Garrett Johnson 5 years ago
parent
commit
b13477bcf5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/webgl_shadowmap_csm.html

+ 1 - 0
examples/webgl_shadowmap_csm.html

@@ -214,6 +214,7 @@
 
 				requestAnimationFrame( animate );
 
+				camera.updateMatrixWorld();
 				csm.update( camera.matrixWorld );
 				controls.update();