diff options
Diffstat (limited to 'sway/desktop/shaders/quad_round_tl.frag')
-rw-r--r-- | sway/desktop/shaders/quad_round_tl.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/shaders/quad_round_tl.frag b/sway/desktop/shaders/quad_round_tl.frag index 6fd0119c..758fece9 100644 --- a/sway/desktop/shaders/quad_round_tl.frag +++ b/sway/desktop/shaders/quad_round_tl.frag @@ -8,7 +8,7 @@ uniform float radius; void main() { vec2 q = abs(gl_FragCoord.xy - position - size) - size + radius; - float distance = min(max(q.x,q.y),0.0) + length(max(q,0.0)) - radius; + float distance = min(max(q.x,q.y),0.0) + length(max(q,0.0)) - radius; float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, distance); gl_FragColor = mix(vec4(0), v_color, smoothedAlpha); } |