Created
June 20, 2018 20:43
-
-
Save psql/4ca8295769bb9a5981b9f52966911a00 to your computer and use it in GitHub Desktop.
0001
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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