2021-03-25 21:04:36 +00:00
|
|
|
uniform half4 colorWhite;
|
2020-09-15 14:10:43 +00:00
|
|
|
|
|
|
|
inline bool testA(half4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return bool(v.r);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline bool testB(half4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return bool(v.g);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 18:27:08 +00:00
|
|
|
half4 main(float2 coords) {
|
2021-03-25 21:04:36 +00:00
|
|
|
half4 result = half4(0);
|
|
|
|
if (testA(colorWhite) && testB(colorWhite)) {
|
|
|
|
result.g = 1;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
if (testB(colorWhite) || testA(colorWhite)) {
|
|
|
|
result.a = 1;
|
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
|
|
|
}
|