You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
367 B

uniform half4 colorWhite;
inline bool testA(half4 v) {
return bool(v.r);
}
inline bool testB(half4 v) {
return bool(v.g);
}
half4 main(float2 coords) {
half4 result = half4(0);
if (testA(colorWhite) && testB(colorWhite)) {
result.g = 1;
}
if (testB(colorWhite) || testA(colorWhite)) {
result.a = 1;
}
return result;
}