feat: quad shadows

This commit is contained in:
Nick Senger 2023-11-08 19:12:53 -08:00 committed by Héctor Ramón Jiménez
parent b3e3f6e3c9
commit cc906c83cd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
33 changed files with 305 additions and 25 deletions

15
core/src/shadow.rs Normal file
View 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,
}