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