浏览代码

remove unnecessary shadow camera updates

Garrett Johnson 5 年之前
父节点
当前提交
fcc2ac4868
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      examples/jsm/csm/CSM.js

+ 0 - 3
examples/jsm/csm/CSM.js

@@ -243,9 +243,6 @@ export default class CSM {
 			light.target.position.y += this.lightDirection.y;
 			light.target.position.z += this.lightDirection.z;
 
-			light.shadow.camera.updateMatrixWorld();
-			light.shadow.camera.updateProjectionMatrix();
-
 		}
 
 	}