diff options
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/circle_mask.glsl | 2 |
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)); } |