2020-09-15 14:10:43 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-03-25 21:04:36 +00:00
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
2021-03-22 15:43:11 +00:00
|
|
|
bool shouldLoop_bh4(vec4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return v != colorGreen;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
vec4 main() {
|
|
|
|
vec4 result = colorRed;
|
|
|
|
while (shouldLoop_bh4(result)) {
|
|
|
|
result = colorGreen;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
return result;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|