tidying up some shader stuff (nameing etc)

This commit is contained in:
langolierz
2018-10-16 20:54:48 +00:00
parent f1ee096cb3
commit fc14b5023c
23 changed files with 69 additions and 416 deletions

View File

@@ -1,4 +1,5 @@
//pro-shader
//written by Tim Caldwell
#ifdef GL_ES
precision mediump float;
#endif
@@ -17,8 +18,8 @@ void main(){
vec2 pos = v_texcoord;
//float amp = pos.y * 0.03 + .001;
pos.x += 0.05*u_x2*sin( pos.y* 60.0*u_x3 + u_time * 1.0 );
pos.y += 0.05*u_x0*sin( pos.x* 60.0*u_x1 + u_time * 1.0);
pos.x += 0.07*u_x2*sin( pos.y* 70.0*u_x3 + u_time * 1.0 );
pos.y += 0.07*u_x0*sin( pos.x* 70.0*u_x1 + u_time * 1.0);
pos.y = mod(pos.y,1.0);
pos.x = mod(pos.x,1.0);
//if(pos.y > 1.0 || pos.y < 0.0){pos.y = 0.0;}