summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-07-01 12:04:26 -0700
committerGraham Linden <graham@lindenlab.com>2019-07-01 12:04:26 -0700
commitf770e55ac6fb76f1ea5e24a4dd91f2a4b4131d6d (patch)
tree1d4b75f2a5f3490aa319608313063aae0d338a0b /indra/newview/app_settings/shaders/class1/deferred
parent2911cd3623b3e7e12945401db0e6a56758841ead (diff)
SL-11427
Fixed downscaling of the refscale passed in from WL in the water shader.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/waterF.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl b/indra/newview/app_settings/shaders/class1/deferred/waterF.glsl
index b24da15a07..5a3a02d5d1 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.01)/max(dmod*df1, 1.0);
+ vec2 distort2 = distort+wavef.xy*refScale/max(dmod*df1, 1.0);
vec4 fb = texture2D(screenTex, distort2);
fb.rgb = srgb_to_linear(fb.rgb);