You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
260 B

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