6 vec4 white = vec4(1.0);
\r
7 vec4 black = vec4(0.2);
\r
10 // First, cut out our circle
\r
11 float x = tex_coord.x*2.0 - 1.0;
\r
12 float y = tex_coord.y*2.0 - 1.0;
\r
14 float radius = sqrt(x*x + y*y);
\r
20 gl_FragColor = color;
\r
29 // If we're near an edge, darken us a tiny bit
\r
31 color -= abs(pow(radius, 16.0)/2.0);
\r
33 gl_FragColor = color;
\r