Просмотр исходного кода

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

Ben Houston 11 лет назад
Родитель
Сommit
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

粤ICP备19079148号