#[derive(Debug, Clone, Copy, PartialEq)]
pub struct ShaderData {
pub exposure: f32,
pub gamma: f32,
pub dust_intensity: f32,
}
impl ShaderData {
pub fn terrain() -> Self {
Self {
exposure: 0.9,
gamma: 2.2,
dust_intensity: 0.06,
}
}
pub fn eclipse() -> Self {
Self {
exposure: 0.3,
gamma: 2.2,
dust_intensity: 0.02,
}
}
}