Skip to content
Snippets Groups Projects
Commit ee9ad652 authored by Graham Linden's avatar Graham Linden
Browse files

SL-11343

Make materials apply vertex color to both linear and srgb versions of diffuse color.
parent b507392b
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,7 @@ void main()
#endif
diffuse_linear.rgb *= vertex_color.rgb;
diffuse_srgb.rgb *= linear_to_srgb(vertex_color.rgb);
#ifdef HAS_SPECULAR_MAP
vec4 spec = texture2D(specularMap, vary_texcoord2.xy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment