1234567891011121314151617181920 |
- varying float depth;
- varying float XYlimit;
- uniform float pos;
- uniform float thres;
- void main (void)
- {
- vec4 color = gl_Color;
-
-
-
- if ((depth<=pos+thres/2 && depth > pos -thres/2) && depth > 1)
- { color.a = 1;}
- else {color.a=0;}
-
- gl_FragColor = color;
- }
|