Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void mainImage( out vec4 fragColor, in vec2 fragCoord )
- {
- vec2 uv = fragCoord.xy / iResolution.xy;
- float cosFunc = cos((uv.x * 10.0) + mod(iGlobalTime, 3.14 * 2.0));
- if (abs(((fragCoord.y - 200.0) + mod(iGlobalTime, 3.14 * 2.0)) - cosFunc * 100.0) <= 50.0)
- fragColor = vec4(uv,0.5+0.5*sin(iGlobalTime * 120.0),1.0);
- else
- fragColor = vec4(0, 0, 0, 1.0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement