1precision highp float; 2 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} 16