| 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; | |
| } |