summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-02 17:26:16 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-02 17:26:16 -0700
commit4170f7b1601203e8953672c42bfb320d7c715a92 (patch)
treefd791376cb52489af8427ab9a6559ba6b539ac3f
parentf89490c1dee0024c19ca711ff0af62e7145b4b9b (diff)
SL-10855
Apply sRGB colorspace to deferred cloud output.
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/cloudsF.glsl3
1 files changed, 2 insertions, 1 deletions
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);