2021-01-26 16:06:42 +00:00
|
|
|
|
2021-01-27 00:58:22 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-01-26 21:28:12 +00:00
|
|
|
uniform vec4 colorWhite;
|
2021-01-26 16:06:42 +00:00
|
|
|
vec4 main() {
|
2021-01-26 21:28:12 +00:00
|
|
|
vec4 x = colorWhite;
|
2021-01-26 16:06:42 +00:00
|
|
|
for (float r = -5.0;r < 5.0; r += 1.0) {
|
2021-01-27 14:56:04 +00:00
|
|
|
x.x = clamp(r, 0.0, 1.0);
|
2021-01-26 16:06:42 +00:00
|
|
|
if (x.x == 0.0) break;
|
|
|
|
}
|
|
|
|
for (float b = 5.0;b >= 0.0; b -= 1.0) {
|
|
|
|
x.z = b;
|
|
|
|
if (x.w == 1.0) continue;
|
|
|
|
x.y = 0.0;
|
|
|
|
}
|
|
|
|
return x;
|
|
|
|
}
|