summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/skyF.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-06-11 13:03:06 -0700
committerGraham Linden <graham@lindenlab.com>2019-06-11 13:03:06 -0700
commit653133b9c035e7c34563b199e991189ca3046092 (patch)
treeb5d7b99fc3cacb7f887263edf744463006d9eb1a /indra/newview/app_settings/shaders/class1/deferred/skyF.glsl
parentc15baecbfbc9baffdeb6ec53b7e4090470514657 (diff)
SL-11370, SL-11372, SL-11337
Fix culling on Low+ water reflection pass. Make Mid+ / High use class1 deferred sky again (no rainbows, but faster!). Fix setting of cloud color for deferred sky/cloud shaders. Put water reflections back in wrong colorspace for consistency with release.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/skyF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/skyF.glsl8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/skyF.glsl b/indra/newview/app_settings/shaders/class1/deferred/skyF.glsl
index 72b7aa9036..894ce8a5e9 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/skyF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/skyF.glsl
@@ -41,6 +41,8 @@ uniform vec4 gamma;
/// Soft clips the light with a gamma correction
vec3 scaleSoftClip(vec3 light);
+vec3 srgb_to_linear(vec3 c);
+vec3 linear_to_srgb(vec3 c);
void main()
{
@@ -51,10 +53,12 @@ void main()
vec4 color;
color = vary_HazeColor;
- color *= 2.;
+ color.rgb *= 2.0f;
+ //color.rgb = scaleSoftClip(color.rgb);
+ //color.rgb = linear_to_srgb(color.rgb);
/// Gamma correct for WL (soft clip effect).
- frag_data[0] = vec4(scaleSoftClip(color.rgb), 1.0);
+ frag_data[0] = vec4(color.rgb, 1.0);
frag_data[1] = vec4(0.0,0.0,0.0,0.0);
frag_data[2] = vec4(0.5,0.5,0.0,1.0); //1.0 in norm.w masks off fog