Browse Source

More efficient calculation (#24675)

WestLangley 2 years ago
parent
commit
824533ee8f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/lights/LightShadow.js

+ 1 - 2
src/lights/LightShadow.js

@@ -75,8 +75,7 @@ class LightShadow {
 			0.0, 0.0, 0.0, 1.0
 			0.0, 0.0, 0.0, 1.0
 		);
 		);
 
 
-		shadowMatrix.multiply( shadowCamera.projectionMatrix );
-		shadowMatrix.multiply( shadowCamera.matrixWorldInverse );
+		shadowMatrix.multiply( _projScreenMatrix );
 
 
 	}
 	}