summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/shaders/3dsliceframes.frag
blob: 44c080dc80b1e2d69afc3d3ef2dbf09f55fa4145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 120

uniform highp vec4 color_mdl;
uniform highp vec2 sliceFrameWidth;

varying highp 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)
        gl_FragColor = color_mdl;
    else
        discard;
}