diff options
Diffstat (limited to 'sway/desktop/shaders/corner.frag')
-rw-r--r-- | sway/desktop/shaders/corner.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/shaders/corner.frag b/sway/desktop/shaders/corner.frag index 9c5f0981..7699299a 100644 --- a/sway/desktop/shaders/corner.frag +++ b/sway/desktop/shaders/corner.frag @@ -20,7 +20,7 @@ void main() { vec2 center = gl_FragCoord.xy - position - half_size; float distance = roundedBoxSDF(center, half_size - half_thickness, radius + half_thickness); float smoothedAlphaOuter = 1.0 - smoothstep(-1.0, 1.0, distance - half_thickness); -// Create an inner circle that isn't as anti-aliased as the outer ring + // Create an inner circle that isn't as anti-aliased as the outer ring float smoothedAlphaInner = 1.0 - smoothstep(-1.0, 0.5, distance + half_thickness); gl_FragColor = mix(vec4(0), v_color, smoothedAlphaOuter - smoothedAlphaInner); |