use scenix_core::Color;
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Fog {
Linear {
near: f32,
far: f32,
color: Color,
},
Exponential {
density: f32,
color: Color,
},
}
impl Fog {
#[inline]
pub const fn linear(near: f32, far: f32, color: Color) -> Self {
Self::Linear { near, far, color }
}
#[inline]
pub const fn exponential(density: f32, color: Color) -> Self {
Self::Exponential { density, color }
}
}