From 4170f7b1601203e8953672c42bfb320d7c715a92 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Tue, 2 Apr 2019 17:26:16 -0700 Subject: SL-10855 Apply sRGB colorspace to deferred cloud output. --- indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders') diff --git a/indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl b/indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl index 3fcb416601..9535cd6870 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl @@ -55,6 +55,7 @@ VARYING float altitude_blend_factor; /// Soft clips the light with a gamma correction vec3 scaleSoftClip(vec3 light); +vec3 linear_to_srgb(vec3 c); vec4 cloudNoise(vec2 uv) { @@ -119,7 +120,7 @@ void main() vec4 color; color = (cloudColorSun*(1.-alpha2) + cloudColorAmbient); color.rgb= max(vec3(0), color.rgb); - color *= 2.; + color.rgb = linear_to_srgb(color.rgb); /// Gamma correct for WL (soft clip effect). frag_data[0] = vec4(scaleSoftClip(color.rgb), alpha1); -- cgit v1.2.3