Advertisement
Guest User

Untitled

a guest
May 6th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void mainImage( out vec4 fragColor, in vec2 fragCoord )
  2. {
  3. vec2 uv = fragCoord.xy / iResolution.xy;
  4. float cosFunc = cos((uv.x * 10.0) + mod(iGlobalTime, 3.14 * 2.0));
  5. if (abs(((fragCoord.y - 200.0) + mod(iGlobalTime, 3.14 * 2.0)) - cosFunc * 100.0) <= 50.0)
  6. fragColor = vec4(uv,0.5+0.5*sin(iGlobalTime * 120.0),1.0);
  7. else
  8. fragColor = vec4(0, 0, 0, 1.0);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement