diff options
author | Dave Houlton <euclid@lindenlab.com> | 2020-04-09 18:30:33 -0600 |
---|---|---|
committer | Dave Houlton <euclid@lindenlab.com> | 2020-04-09 18:30:33 -0600 |
commit | 3c6b666ccdb00cf4c8744f11069b2394f8e76267 (patch) | |
tree | d4d9cdbeac4efe4f92e9dde807f5046ec5702409 /indra/newview/app_settings/shaders/class1 | |
parent | 538a6d737d191e4ab03b484e2be1910298bb3cca (diff) |
SL-12975, unfix alpha and undo non-fix magic number of refracted portion of water Fresnel
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/waterF.glsl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl index ceb4b8033d..a157e9c017 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl @@ -152,7 +152,7 @@ void main() spec = pow(spec, 128.0); //figure out distortion vector (ripply) - vec2 distort2 = distort+wavef.xy*refScale*0.16/max(dmod*df1, 1.0); + vec2 distort2 = distort+wavef.xy*refScale/max(dmod*df1, 1.0); vec4 fb = texture2D(screenTex, distort2); @@ -172,7 +172,13 @@ void main() vec3 screenspacewavef = normalize((norm_mat*vec4(wavef, 1.0)).xyz); //frag_data[0] = color; - frag_data[0] = color; + + // TODO: The non-obvious assignment below is copied from the pre-EEP WL shader code + // Unfortunately, fixing it causes a mismatch for EEP, and so it remains... for now + // SL-12975 (unfix pre-EEP broken alpha) + frag_data[0] = vec4(color.rgb, color); // Effectively, color.rgbr + + frag_data[1] = vec4(0); // speccolor, spec frag_data[2] = vec4(encode_normal(screenspacewavef.xyz), 0.05, 0);// normalxy, 0, 0 } |