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