refactor: clearer monitor screen

This commit is contained in:
2025-11-17 14:01:34 +01:00
parent 8a14ad52bf
commit 69e34b499c
3 changed files with 102 additions and 60 deletions
+4
View File
@@ -226,6 +226,10 @@ float circle(vec2 uv, vec2 c, float size) {
return istep(size, length(uv - c));
}
float h_circle(vec2 uv, vec2 c, float size, float k) {
return circle(uv, c, size + k * 0.5) - circle(uv, c, size - k * 0.5);
}
float stripe(float x, float k1, float k2)
{
return k2 > k1 ? (1 - step(x, k1)) * (step(x, k2)) : ((1 - step(x, k2)) * (step(x, k1)));