• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 a;
4uniform vec4 b;
5uniform uvec2 c;
6uniform uvec2 d;
7uniform ivec3 e;
8uniform ivec3 f;
9void main() {
10    bvec4 expectTTFF = bvec4(true, true, false, false);
11    bvec4 expectFFTT = bvec4(false, false, true, true);
12    sk_FragColor.x = float(lessThanEqual(a, b).x ? 1 : 0);
13    sk_FragColor.y = float(lessThanEqual(c, d).y ? 1 : 0);
14    sk_FragColor.z = float(lessThanEqual(e, f).z ? 1 : 0);
15    sk_FragColor.w = float(any(expectTTFF) || any(expectFFTT) ? 1 : 0);
16}
17