• 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 ((((all(input.xy) == expected.x && all(input.xyz) == expected.y) && all(input) == expected.z) && expected.x) && false == expected.y) && false == expected.z ? colorGreen : colorRed;
11}
12