shell/elements: Fix corners order for clipping/shadows

This commit is contained in:
Victoria Brekenfeld 2025-12-12 19:16:51 +01:00 committed by Victoria Brekenfeld
parent ea470f0a4b
commit b6f0855a31
5 changed files with 34 additions and 28 deletions

View file

@ -82,6 +82,12 @@ impl ShadowShader {
let offset = [0., 5.];
let color = [0., 0., 0., 0.45];
let radius = radius.map(|r| ceil(r as f64));
let radius = [
radius[3], // top_left
radius[1], // top_right
radius[0], // bottom_right
radius[2], // bottom_left
];
let width = softness;
let sigma = width / 2.;