summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/pointCoord.frag
blob: 8dc9e746db44ede6ee372018ec8e100ed1fcfb52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
precision highp float;

uniform sampler2D sampler;

void main()
{
    vec4 color;

    if (length(gl_PointCoord) < 0.3)
        color = texture2D(sampler, gl_PointCoord);
    else
        color = vec4(0.0);

    gl_FragColor = color;
}