SHARE
TWEET
Untitled
a guest
Sep 24th, 2014
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- void main( void )
- {
- vec2 pos = -1.0 + 2.0 * ( gl_FragCoord.xy / iResolution.xy );
- vec2 ball = 0.9 * vec2(sin(iGlobalTime), cos(0.5 * iGlobalTime));
- if (distance(pos, ball) < 0.1)
- gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0 );
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
