SHARE
TWEET

Untitled

a guest Sep 24th, 2014 202 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void main(void)
  2. {
  3.     vec2 center = vec2(iResolution.x / 2.0, iResolution.y / 2.0);
  4.         float distance = distance(center, gl_FragCoord.xy);
  5.     if(distance < 60.0)
  6.     {
  7.         gl_FragColor = vec4(.9, .9, .9, 1.0);
  8.     }
  9.     else
  10.     {
  11.         gl_FragColor = vec4(.2, .2, .4, 1.0);
  12.     }
  13. }
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