Browse Source

Fix note #5 of https://github.com/mrdoob/three.js/pull/5805#issuecomment-75610227

Ben Houston 10 years ago
parent
commit
8cb82c8810
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl

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

@@ -227,6 +227,6 @@ vec3 totalSpecularLight = vec3( 0.0 );
 
 #else
 
-	outgoingLight += diffuseColor.rgb * ( totalDiffuseLight + ambientLightColor * diffuse ) + totalSpecularLight + emissive;
+	outgoingLight += diffuseColor.rgb * ( totalDiffuseLight + ambientLightColor ) + totalSpecularLight + emissive;
 
 #endif