2021-03-25 21:04:36 +00:00
|
|
|
uniform half4 colorGreen;
|
|
|
|
|
2020-09-15 14:10:43 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2021-04-26 19:39:17 +00:00
|
|
|
half4 main() {
|
2020-09-15 14:10:43 +00:00
|
|
|
for (sk_FragColor = initLoopVar();
|
|
|
|
shouldLoop(sk_FragColor);
|
|
|
|
sk_FragColor = grow(sk_FragColor)) {
|
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
return colorGreen;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|