SHARE
TWEET

Untitled

a guest Sep 24th, 2014 228 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void main( void )
  2. {
  3.         vec2 pos = -1.0 + 2.0 * ( gl_FragCoord.xy / iResolution.xy );
  4.         vec2 ball = 0.9 * vec2(sin(iGlobalTime), cos(0.5 * iGlobalTime));
  5.    
  6.     if (distance(pos, ball) < 0.1)
  7.         gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0 );
  8.    
  9.    
  10.    
  11. }
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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top