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

pub fn material_from_albedo(albedo: f64, near_fault: bool) -> TerrainMaterial {
    if near_fault && albedo > 0.20 {
        TerrainMaterial::FaultScarp
    } else if albedo < 0.18 {
        TerrainMaterial::DarkRegolith
    } else if albedo > 0.40 {
        TerrainMaterial::IcyBright
    } else {
        TerrainMaterial::CraterEjecta
    }
}
