From c1b6d91c32ae4ab0bd9a19d92dc95110d937d940 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Mon, 8 Jul 2019 10:48:34 -0700 Subject: SL-11540 Make class1/environment and class1/deferred water match. --- indra/newview/app_settings/shaders/class1/environment/waterF.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/app_settings/shaders/class1/environment') diff --git a/indra/newview/app_settings/shaders/class1/environment/waterF.glsl b/indra/newview/app_settings/shaders/class1/environment/waterF.glsl index 05fd4461c1..750de7100f 100644 --- a/indra/newview/app_settings/shaders/class1/environment/waterF.glsl +++ b/indra/newview/app_settings/shaders/class1/environment/waterF.glsl @@ -121,6 +121,7 @@ void main() vec4 refcol = refcol1 + refcol2 + refcol3; float df1 = df.x + df.y + df.z; + df1 *= 0.666666f; refcol *= df1; vec3 wavef = (wave1 + wave2 * 0.4 + wave3 * 0.6) * 0.5; @@ -155,6 +156,9 @@ void main() color.a = spec * sunAngle2; + //color.rgb = atmosTransport(color.rgb); + color.rgb = scaleSoftClip(color.rgb); + #if defined(WATER_EDGE) gl_FragDepth = 0.9999847f; #endif -- cgit v1.2.3