summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/engine/shaders/3dsliceframes.frag
blob: 60b20cd6dde7da66fe703d9f63e23fd8011df075 (plain)
1
2
3
4
5
6
7
8
9
10
VARYING vec3 pos;

void MAIN() {
    highp vec2 absPos = min(vec2(1.0, 1.0), abs(pos.xy));
    if (absPos.x > sliceFrameWidth.x || absPos.y > sliceFrameWidth.y)
        FRAGCOLOR = color;
    else
        discard;
}