#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TerrainMaterial {
    PristineIce,
    ChaosTerrain,
    Lineae,
    SmoothPlains,
    RidgedPlains,
}

pub fn material_from_albedo(albedo: f64, is_chaos: bool) -> TerrainMaterial {
    if is_chaos && albedo < 0.60 {
        TerrainMaterial::ChaosTerrain
    } else if albedo < 0.50 {
        TerrainMaterial::Lineae
    } else if albedo > 0.85 {
        TerrainMaterial::PristineIce
    } else if albedo > 0.70 {
        TerrainMaterial::RidgedPlains
    } else {
        TerrainMaterial::SmoothPlains
    }
}
