2020-09-15 14:10:43 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-03-25 21:04:36 +00:00
|
|
|
uniform vec4 colorWhite;
|
2021-03-22 15:43:11 +00:00
|
|
|
bool testA_bh4(vec4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return bool(v.x);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-22 15:43:11 +00:00
|
|
|
bool testB_bh4(vec4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return bool(v.y);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
vec4 main() {
|
|
|
|
vec4 result = vec4(0.0);
|
|
|
|
if (bool(colorWhite.x) && testB_bh4(colorWhite)) {
|
|
|
|
result.y = 1.0;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
if (bool(colorWhite.y) || testA_bh4(colorWhite)) {
|
|
|
|
result.w = 1.0;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
return result;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|