blob: 8ce25c4e32d15fd7d2ffd54e62f574e0ecaff63e [file] [log] [blame]
uniform half4 colorGreen, colorRed;
inline half4 trueSide(half4 v) {
return v.r1ba;
}
inline half4 falseSide(half4 v) {
return v.r0ba;
}
half4 main(float2 coords) {
return bool(colorGreen.g) ? trueSide(colorGreen) : falseSide(colorRed);
}