From ee9ad6520ec0cad689a9dfa7ca55717a43f2e897 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Fri, 31 May 2019 15:25:54 -0700 Subject: SL-11343 Make materials apply vertex color to both linear and srgb versions of diffuse color. --- indra/newview/app_settings/shaders/class1/deferred/materialF.glsl | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/app_settings/shaders') diff --git a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl index 8e0b903d04..1e7ca08aa1 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl @@ -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); -- cgit v1.2.3