blob: 695b5b9c07449dbb225950fabfaf7e70b9b3c789 [file] [log] [blame]
uniform half4 colorGreen, colorRed;
inline bool shouldLoop(half4 value) {
return value != colorGreen;
}
half4 main(float2 coords) {
half4 result = colorRed;
do {
result = colorGreen;
} while (shouldLoop(result));
return result;
}