blob: 56a3e2b61e641197aa28b4457936f0b78038053a [file] [log] [blame]
uniform half4 colorGreen, colorRed, colorWhite;
float4 main(float2) {
half4 result = colorGreen;
bool trueCondition = bool(colorGreen.g);
bool falseCondition = bool(colorGreen.r);
if (trueCondition) {
if (falseCondition) {
result = colorRed;
}
} else {
result = colorRed;
}
return result;
}