Make tiny-skia equivalent

This commit is contained in:
Daniel Yoon 2024-03-26 13:02:04 +11:00
parent 8c401be207
commit 39f57a258e

View file

@ -233,7 +233,8 @@ impl Backend {
), ),
size, size,
&radii, &radii,
); )
.max(0.0);
let shadow_alpha = 1.0 let shadow_alpha = 1.0
- smoothstep( - smoothstep(
-shadow.blur_radius * scale_factor, -shadow.blur_radius * scale_factor,