From 1b7abc7e819d055b3d0ea5be8967a1e381bb5d60 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 28 Apr 2021 05:37:15 +0200 Subject: Add youtube subscriptions, etc --- shaders/circle_mask.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') 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)); } -- cgit v1.2.3