Make materials apply vertex color to both linear and srgb versions of diffuse color.
meow-7.2.2
Graham Linden 2019-05-31 15:25:54 -07:00
parent b507392b78
commit ee9ad6520e
1 changed files with 1 additions and 0 deletions

View File

@ -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);