aboutsummaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-28 05:37:15 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-28 05:37:42 +0200
commit1b7abc7e819d055b3d0ea5be8967a1e381bb5d60 (patch)
tree503e6f67d933119df4512ef7186ed380b393f868 /shaders
parentf045e579e1faa186ca0ebf6e6d1e562fbcd75727 (diff)
Add youtube subscriptions, etc
Diffstat (limited to 'shaders')
-rw-r--r--shaders/circle_mask.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/circle_mask.glsl b/shaders/circle_mask.glsl
index 0266d2c..198191e 100644
--- a/shaders/circle_mask.glsl
+++ b/shaders/circle_mask.glsl
@@ -2,7 +2,7 @@ uniform sampler2D texture;
uniform vec2 resolution;
vec4 circle(vec2 uv, vec2 pos, float rad, vec4 color) {
- float d = length(pos - uv) - rad;
+ float d = smoothstep(0.0, 2.0, length(pos - uv) - rad);
float t = clamp(d, 0.0, 1.0);
return vec4(color.rgb, color.a * (1.0 - t));
}