John Kessenich | bd0747d | 2013-02-17 06:01:50 +0000 | [diff] [blame] | 1 | precision highp float; |
John Kessenich | 6968b82 | 2013-02-08 22:54:14 +0000 | [diff] [blame] | 2 | |
3 | uniform sampler2D sampler; | ||||
4 | |||||
5 | void 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 | } |