|
@@ -269,10 +269,10 @@ vec3 totalSpecular = vec3( 0.0 );
|
|
|
|
|
|
#ifdef METAL
|
|
|
|
|
|
- gl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor + totalSpecular );
|
|
|
+ gl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor * diffuse + totalSpecular );
|
|
|
|
|
|
#else
|
|
|
|
|
|
- gl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor ) + totalSpecular;
|
|
|
+ gl_FragColor.xyz = gl_FragColor.xyz * ( emissive + totalDiffuse + ambientLightColor * diffuse ) + totalSpecular;
|
|
|
|
|
|
#endif
|