Parcourir la source

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

Ben Houston il y a 11 ans
Parent
commit
8cb82c8810
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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