oberons 0.0.3

Oberon celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[test]
fn lod_default() {
    let c = oberons::terrain::lod::LodConfig::default();
    assert!(c.max_level > c.min_level);
}

#[test]
fn lod_level() {
    let c = oberons::terrain::lod::LodConfig::default();
    let l = oberons::terrain::lod::lod_level(c, 1_000.0);
    assert!(l >= c.min_level && l <= c.max_level);
}

#[test]
fn mesh_vertex() {
    let p = oberons::terrain::mesh::SphericalPatch::new(16);
    assert_eq!(p.vertex_count(), 17 * 17);
}

#[test]
fn terrain_material() {
    let m = oberons::terrain::texturing::material_from_albedo(0.10, false);
    assert_eq!(
        m,
        oberons::terrain::texturing::TerrainMaterial::DarkRegolith
    );
}

#[test]
fn icy_bright_terrain() {
    let m = oberons::terrain::texturing::material_from_albedo(0.50, false);
    assert_eq!(m, oberons::terrain::texturing::TerrainMaterial::IcyBright);
}

#[test]
fn polar_frost_terrain() {
    let m = oberons::terrain::texturing::material_from_albedo(0.30, true);
    assert_eq!(m, oberons::terrain::texturing::TerrainMaterial::PolarFrost);
}