diff options
author | Graham Linden <graham@lindenlab.com> | 2019-04-05 11:39:14 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-04-05 11:39:14 -0700 |
commit | 39803f29c6b8dec710fb4b0244a81734bd95644a (patch) | |
tree | 35f020ef646c9a03af555bb7d4d341ac8344c5e4 | |
parent | f0fcbeff745a04d5a6d7188fb12ec46fdc79fd6b (diff) |
Fix spec gone wild in ALM water rendering.
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/waterF.glsl | 7 |
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 } |