Adjusted refraction factor

This commit is contained in:
yvt 2013-09-04 23:42:14 +09:00
parent 70923eb0e7
commit 122301b173
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ void main() {
float scale = 1. / dot(xToUV.xy, yToUV.yx * vec2(1., -1.));
vec2 disp = vec2(dot(xToUV, wave.xy * vec2(1., -1.)),
dot(yToUV, wave.xy * vec2(-1., 1.)));
scrPos += disp * scale * displaceScale ;
scrPos += disp * scale * displaceScale * 4.;
// check envelope length.
// if the displaced location points the out of the water,

View File

@ -90,7 +90,7 @@ void main() {
float scale = 1. / dot(xToUV.xy, yToUV.yx * vec2(1., -1.));
vec2 disp = vec2(dot(xToUV, wave.xy * vec2(1., -1.)),
dot(yToUV, wave.xy * vec2(-1., 1.)));
scrPos += disp * scale * displaceScale ;
scrPos += disp * scale * displaceScale * 4.;
// check envelope length.
// if the displaced location points the out of the water,