• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 inputH4;
4uniform vec4 expectedH4;
5uniform vec4 colorGreen;
6uniform vec4 colorRed;
7vec4 main() {
8    bvec4 input = bvec4(inputH4);
9    bvec4 expected = bvec4(expectedH4);
10    return ((((not(input.xy) == expected.xy && not(input.xyz) == expected.xyz) && not(input) == expected) && bvec2(false, true) == expected.xy) && bvec3(false, true, false) == expected.xyz) && bvec4(false, true, false, true) == expected ? colorGreen : colorRed;
11}
12