shell/elements: Fix corners order for clipping/shadows
This commit is contained in:
parent
ea470f0a4b
commit
b6f0855a31
5 changed files with 34 additions and 28 deletions
|
|
@ -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.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue