Преглед на файлове

do not modulate emissive by diffuseColor.

Ben Houston преди 10 години
родител
ревизия
728f409415
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl

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

@@ -229,10 +229,10 @@ vec3 totalSpecularLight = vec3( 0.0 );
 
 #ifdef METAL
 
-	outgoingLight += diffuseColor.rgb * ( emissive + totalDiffuseLight + ambientLightColor * ambient + totalSpecularLight );
+	outgoingLight += diffuseColor.rgb * ( totalDiffuseLight + ambientLightColor * ambient + totalSpecularLight ) + emissive;
 
 #else
 
-	outgoingLight += diffuseColor.rgb * ( emissive + totalDiffuseLight + ambientLightColor * ambient ) + totalSpecularLight;
+	outgoingLight += diffuseColor.rgb * ( totalDiffuseLight + ambientLightColor * ambient ) + totalSpecularLight + emissive;
 
 #endif