feat: quad shadows
This commit is contained in:
parent
b3e3f6e3c9
commit
cc906c83cd
33 changed files with 305 additions and 25 deletions
15
core/src/shadow.rs
Normal file
15
core/src/shadow.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//! Shadow
|
||||
use crate::{Color, Vector};
|
||||
|
||||
/// A shadow
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
||||
pub struct Shadow {
|
||||
/// The color of the shadow
|
||||
pub color: Color,
|
||||
|
||||
/// The offset of the shadow
|
||||
pub offset: Vector,
|
||||
|
||||
/// The blur_radius of the shadow
|
||||
pub blur_radius: f32,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue