blob: 6d6043688e6f930dc916942ed02ba6afa4f4ca68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#version 120
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;
}
|