2020-12-09 21:19:37 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
2021-05-11 01:56:10 +00:00
|
|
|
uniform vec4 inputH4;
|
|
|
|
uniform vec4 expectedH4;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
vec4 main() {
|
2021-09-30 16:00:09 +00:00
|
|
|
bvec4 inputVal = bvec4(inputH4);
|
2021-05-11 01:56:10 +00:00
|
|
|
bvec4 expected = bvec4(expectedH4);
|
2021-09-30 16:00:09 +00:00
|
|
|
return ((((any(inputVal.xy) == expected.x && any(inputVal.xyz) == expected.y) && any(inputVal) == expected.z) && false == expected.x) && expected.y) && expected.z ? colorGreen : colorRed;
|
2020-12-09 21:19:37 +00:00
|
|
|
}
|