summaryrefslogtreecommitdiff
path: root/chart2/opengl/symbolFragmentShader.glsl
blob: 0567321fbf42f6c635ef56eda201aa6f34e276ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#version 110

varying vec4 fragmentColor;

void main()
{
    vec2 p = gl_PointCoord * 2.0 - vec2(1.0); // (0,0) in the center
    if (abs(p.x) < abs(p.y))
        discard;

    gl_FragColor = fragmentColor;
}