浏览代码

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

Ben Houston 10 年之前
父节点
当前提交
8cb82c8810
共有 1 个文件被更改,包括 1 次插入1 次删除
  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