aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/squircle.frag
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/quickshell/squircle.frag')
-rw-r--r--modules/system/quickshell/squircle.frag2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/system/quickshell/squircle.frag b/modules/system/quickshell/squircle.frag
index df2477f..058468e 100644
--- a/modules/system/quickshell/squircle.frag
+++ b/modules/system/quickshell/squircle.frag
@@ -27,13 +27,11 @@ void main() {
vec2 halfSize = vec2(ubuf.width, ubuf.height) * 0.5;
vec2 p = (qt_TexCoord0 * vec2(ubuf.width, ubuf.height)) - halfSize;
- // Applied the scaling factor mentioned in the original comment
float r = ubuf.cornerRadius * 1.5286;
float dist = squircleSDF(p, halfSize, r);
float fwidth_dist = fwidth(dist);
- // Corrected edge parameter order to avoid undefined behavior
float alpha = 1.0 - smoothstep(-fwidth_dist, fwidth_dist, dist);
if (ubuf.strokeWidth > 0.0) {