use scenix_core::Color;
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct AmbientLight {
pub color: Color,
pub intensity: f32,
}
impl AmbientLight {
#[inline]
pub const fn new(color: Color, intensity: f32) -> Self {
Self { color, intensity }
}
}
impl Default for AmbientLight {
#[inline]
fn default() -> Self {
Self::new(Color::WHITE, 1.0)
}
}