summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/engine/shaders/surfaceGrid.frag
blob: 491cd61985b56ddc3eb3bb012e3fc150732789ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
vec4 color;
VARYING vec3 pos;
VARYING float disc;

void MAIN()
{
    if (abs(pos.y) > graphHeight)
        discard;
    if (disc > 0)
        discard;

    color = gridColor;
}

void POST_PROCESS()
{
    COLOR_SUM = color;
}