3 uniform sampler2D uTexMain;
4 uniform sampler2D uTexDudv;
12 vec2 ssuv = gl_FragCoord.xy*uInvRes;
13 vec4 dudva = texture( uTexDudv, aUv + vec2(uTime*0.04f,uTime*0.03f) );
14 vec4 dudvb = texture( uTexDudv, aUv - vec2(uTime*0.1,uTime*0.054) );
16 vec2 distortamt = (dudva.rg-0.5) * (dudvb.ba-0.5) * 2.0;
18 vec4 reflected = texture( uTexMain, ssuv+distortamt );
19 FragColor = vec4(reflected.rgb*1.0,reflected.a);