Browse Source

WebGLLights: Remove redundant computation. (#23893)

Michael Herzog 3 năm trước cách đây
mục cha
commit
065022fb15
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/renderers/webgl/WebGLLights.js

+ 0 - 1
src/renderers/webgl/WebGLLights.js

@@ -529,7 +529,6 @@ function WebGLLights( extensions, capabilities ) {
 
 				uniforms.direction.setFromMatrixPosition( light.matrixWorld );
 				uniforms.direction.transformDirection( viewMatrix );
-				uniforms.direction.normalize();
 
 				hemiLength ++;