2023-11-08 19:12:53 -08:00
|
|
|
//! Shadow
|
|
|
|
|
use crate::{Color, Vector};
|
|
|
|
|
|
|
|
|
|
/// A shadow
|
2024-01-20 12:11:18 +01:00
|
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
2023-11-08 19:12:53 -08:00
|
|
|
pub struct Shadow {
|
|
|
|
|
/// The color of the shadow
|
|
|
|
|
pub color: Color,
|
|
|
|
|
|
|
|
|
|
/// The offset of the shadow
|
|
|
|
|
pub offset: Vector,
|
|
|
|
|
|
2024-01-20 12:11:18 +01:00
|
|
|
/// The blur radius of the shadow
|
2023-11-08 19:12:53 -08:00
|
|
|
pub blur_radius: f32,
|
|
|
|
|
}
|