Skip to content
Snippets Groups Projects
Commit f770e55a authored by Graham Linden's avatar Graham Linden
Browse files

SL-11427

Fixed downscaling of the refscale passed in from WL in the water shader.
parent 2911cd36
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ void main() ...@@ -152,7 +152,7 @@ void main()
spec = pow(spec, 128.0); spec = pow(spec, 128.0);
//figure out distortion vector (ripply) //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); vec4 fb = texture2D(screenTex, distort2);
fb.rgb = srgb_to_linear(fb.rgb); fb.rgb = srgb_to_linear(fb.rgb);
......
...@@ -144,7 +144,7 @@ void main() ...@@ -144,7 +144,7 @@ void main()
spec = pow(spec, 128.0); spec = pow(spec, 128.0);
//figure out distortion vector (ripply) //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); vec4 fb = texture2D(screenTex, distort2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment