Skip to content

Instantly share code, notes, and snippets.

@psql
Created June 20, 2018 20:43
Show Gist options
  • Save psql/4ca8295769bb9a5981b9f52966911a00 to your computer and use it in GitHub Desktop.
Save psql/4ca8295769bb9a5981b9f52966911a00 to your computer and use it in GitHub Desktop.
0001
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
float scale = 200.0;
void main() {
// vec4 color = vec4(vec3(1.0,0.0,1.0),1.0);
float speed = 1.00;
float timey = u_time * speed;
float timey2 = u_time * speed * speed;
vec2 screeny = gl_FragCoord.xy /u_resolution;
gl_FragColor = vec4(abs(sin(timey)),u_mouse.x/screeny.y,cos(screeny.x*timey),sin(screeny.y*timey*scale));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment