#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TerrainMaterial {
    DarkRegolith,
    CraterEjecta,
    SmoothPlains,
    ImpactMelt,
}

pub fn material_from_albedo(albedo: f64, near_crater: bool) -> TerrainMaterial {
    if near_crater && albedo > 0.07 {
        TerrainMaterial::ImpactMelt
    } else if albedo < 0.06 {
        TerrainMaterial::DarkRegolith
    } else if albedo > 0.08 {
        TerrainMaterial::CraterEjecta
    } else {
        TerrainMaterial::SmoothPlains
    }
}
