Quellcode durchsuchen

do not modulate emissive by diffuseColor.

Ben Houston vor 10 Jahren
Ursprung
Commit
728f409415
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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