blob: 8dc9e746db44ede6ee372018ec8e100ed1fcfb52 [file] [log] [blame]
John Kessenichbd0747d2013-02-17 06:01:50 +00001precision highp float;
John Kessenich6968b822013-02-08 22:54:14 +00002
3uniform sampler2D sampler;
4
5void main()
6{
7 vec4 color;
8
9 if (length(gl_PointCoord) < 0.3)
10 color = texture2D(sampler, gl_PointCoord);
11 else
12 color = vec4(0.0);
13
14 gl_FragColor = color;
15}