summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-05 11:39:14 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-05 11:39:14 -0700
commit39803f29c6b8dec710fb4b0244a81734bd95644a (patch)
tree35f020ef646c9a03af555bb7d4d341ac8344c5e4
parentf0fcbeff745a04d5a6d7188fb12ec46fdc79fd6b (diff)
Fix spec gone wild in ALM water rendering.
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/waterF.glsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
index c3c8683f6b..e0af521511 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
@@ -153,12 +153,9 @@ void main()
vec4 pos = vary_position;
- //color.rgb = atmosTransport(color.rgb);
- //color.rgb = scaleSoftClipFrag(color.rgb) * 0;
-
vec3 screenspacewavef = normalize((norm_mat*vec4(wavef, 1.0)).xyz);
- frag_data[0] = vec4(color.rgb, 1); // diffuse
- frag_data[1] = vec4(specular * 0.4, 0.75); // speccolor, spec
+ frag_data[0] = vec4(color.rgb, 0.25); // diffuse
+ frag_data[1] = vec4(specular * 0.15, 0.5); // speccolor, spec
frag_data[2] = vec4(encode_normal(screenspacewavef.xyz), 0.05, 0);// normalxy, 0, 0
}