blob: 5d2d7400907c2a5df81e3298e9980f4f109a1c19 [file] [log] [blame]
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;
}