blob: 3f8caa2b78f0396688992110ec8fe950e246477f [file] [log] [blame]
uniform half4 colorGreen, colorRed;
inline bool ifTest(half4 color) {
bool result = bool(color.g);
return result;
}
half4 main(float2 coords) {
if (ifTest(colorGreen))
return colorGreen;
else
return colorRed;
}