Explorar el Código

More efficient calculation (#24675)

WestLangley hace 3 años
padre
commit
824533ee8f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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
 		);
 
-		shadowMatrix.multiply( shadowCamera.projectionMatrix );
-		shadowMatrix.multiply( shadowCamera.matrixWorldInverse );
+		shadowMatrix.multiply( _projScreenMatrix );
 
 	}