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

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) {