1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-10-27 05:24:17 -04:00

backend: gl: fix visible seam in shadow at edge of windows

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2022-08-26 05:28:57 +01:00
parent 8c14d5354c
commit 5d2f8d7456
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -71,7 +71,7 @@ const char masking_glsl[] = GLSL(330,
float dist = mask_rectangle_sdf(maskcoord - mask_size / 2.0f,
inner_size / 2.0f) - mask_corner_radius;
if (dist > 0.0f) {
mask.r = (1.0f - clamp(dist, 0.0f, 1.0f));
mask.r *= (1.0f - clamp(dist, 0.0f, 1.0f));
}
}
if (mask_inverted) {