Browse Source

lights_template: I think normal is already normalized.

Mr.doob 9 years ago
parent
commit
d86d573efc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/shaders/ShaderChunk/lights_template.glsl

+ 1 - 1
src/renderers/shaders/ShaderChunk/lights_template.glsl

@@ -13,7 +13,7 @@
 //  - Add diffuse light probe (irradiance cubemap) support.
 //  - Add diffuse light probe (irradiance cubemap) support.
 //
 //
 
 
-GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal ), normalize(vViewPosition ) );
+GeometricContext geometry = GeometricContext( -vViewPosition, normal, normalize( vViewPosition ) );
 
 
 #if ( NUM_POINT_LIGHTS > 0 ) && defined( Material_RE_DirectLight )
 #if ( NUM_POINT_LIGHTS > 0 ) && defined( Material_RE_DirectLight )