feat: quad shadows
This commit is contained in:
parent
b3e3f6e3c9
commit
cc906c83cd
33 changed files with 305 additions and 25 deletions
|
|
@ -198,6 +198,9 @@ impl<'a> Layer<'a> {
|
|||
border_radius,
|
||||
border_width,
|
||||
border_color,
|
||||
shadow_color,
|
||||
shadow_offset,
|
||||
shadow_blur_radius,
|
||||
} => {
|
||||
let layer = &mut layers[current_layer];
|
||||
|
||||
|
|
@ -210,6 +213,9 @@ impl<'a> Layer<'a> {
|
|||
border_color: color::pack(*border_color),
|
||||
border_radius: *border_radius,
|
||||
border_width: *border_width,
|
||||
shadow_color: shadow_color.into_linear(),
|
||||
shadow_offset: (*shadow_offset).into(),
|
||||
shadow_blur_radius: *shadow_blur_radius,
|
||||
};
|
||||
|
||||
layer.quads.add(quad, background);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue