Created
August 27, 2013 12:57
-
-
Save TideSofDarK/6353169 to your computer and use it in GitHub Desktop.
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
| //By Red_Squirrel | |
| void main(void) | |
| { | |
| vec2 uv = gl_FragCoord.xy / vec2(1024,1024); | |
| float a = 0.0; | |
| a = pow(a*2.0 + sin(iGlobalTime*5.0), 5.0) * 0.5; | |
| vec3 col; | |
| col.r = texture2D( iChannel0, vec2(a+uv.x,uv.y+a) ).r; | |
| col.g = texture2D( iChannel0, vec2(uv.x, uv.y)).g; | |
| col.b = texture2D( iChannel0, vec2(a-uv.x,uv.y) ).b; | |
| gl_FragColor = vec4(col,1.0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment