blob: f6fc7e9260e4e0ddd90ba9a7e03496cd58239154 [file] [log] [blame]
uniform half4 colorGreen;
inline half4 initLoopVar() {
return half4(0.0625);
}
inline bool shouldLoop(half4 v) {
return v.x < 0.5;
}
inline half4 grow(half4 v) {
return v + half4(0.125);
}
half4 main(float2 coords) {
for (half4 color = initLoopVar(); shouldLoop(color); color = grow(color)) {}
return colorGreen;
}