瀏覽代碼

Ensure camera.matrixWorld is up to date

Garrett Johnson 5 年之前
父節點
當前提交
b13477bcf5
共有 1 個文件被更改,包括 1 次插入0 次删除
  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();