Explorar o código

Ensure camera.matrixWorld is up to date

Garrett Johnson %!s(int64=5) %!d(string=hai) anos
pai
achega
b13477bcf5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      examples/webgl_shadowmap_csm.html

+ 1 - 0
examples/webgl_shadowmap_csm.html

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