• 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 expectFFTT = bvec4(false, false, true, true);
11    bvec4 expectTTFF = bvec4(true, true, false, false);
12    sk_FragColor.x = float(greaterThan(a, b).x ? 1 : 0);
13    sk_FragColor.y = float(greaterThan(c, d).y ? 1 : 0);
14    sk_FragColor.z = float(greaterThan(e, f).z ? 1 : 0);
15    sk_FragColor.w = float(any(expectTTFF) || any(expectFFTT) ? 1 : 0);
16}
17