summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-07-08 10:48:34 -0700
committerGraham Linden <graham@lindenlab.com>2019-07-08 10:48:34 -0700
commitc1b6d91c32ae4ab0bd9a19d92dc95110d937d940 (patch)
treee21535c4fa24d3ea0f1ccb485b378e4f4613eb3c /indra/newview/app_settings/shaders/class1/deferred
parent1d86dcd846ed5ea7734df507d15adf057cb2ebd0 (diff)
SL-11540
Make class1/environment and class1/deferred water match.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/waterF.glsl6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
index 5a3a02d5d1..51b131ada7 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
@@ -155,18 +155,16 @@ void main()
vec2 distort2 = distort+wavef.xy*refScale/max(dmod*df1, 1.0);
vec4 fb = texture2D(screenTex, distort2);
- fb.rgb = srgb_to_linear(fb.rgb);
//mix with reflection
// Note we actually want to use just df1, but multiplying by 0.999999 gets around an nvidia compiler bug
- color.rgb = mix(fb.rgb, refcol.rgb, df1 * 0.49999 + 0.5);
+ color.rgb = mix(fb.rgb, refcol.rgb, df1 * 0.99999f);
vec4 pos = vary_position;
color.rgb += spec * specular;
//color.rgb = atmosTransport(color.rgb);
- color.rgb *= 2.0f;
color.rgb = scaleSoftClip(color.rgb);
color.a = spec * sunAngle2;
@@ -175,5 +173,5 @@ void main()
frag_data[0] = vec4(color.rgb, color); // diffuse
frag_data[1] = vec4(0); // speccolor, spec
- frag_data[2] = vec4(encode_normal(screenspacewavef.xyz*0.5+0.5), 0.05, 0);// normalxy, 0, 0
+ frag_data[2] = vec4(encode_normal(screenspacewavef.xyz*0.5+0.5), 0.0, 0);// normalxy, 0, 0
}