callistos 0.0.1

Callisto celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
#[test]
fn dust_plume_opacity_at_surface() {
    let d = callistos::rendering::dust::DustScattering::impact_plume();
    assert!(d.opacity_at_height(0.0) > 0.0);
}

#[test]
fn opacity_decreases_with_height() {
    let d = callistos::rendering::dust::DustScattering::impact_plume();
    assert!(d.opacity_at_height(10_000.0) < d.opacity_at_height(0.0));
}

#[test]
fn dark_terrain_material_albedo() {
    let m = callistos::rendering::materials::PbrMaterial::dark_terrain();
    assert!(m.albedo[0] < 0.3);
    assert!(m.roughness > 0.8);
}

#[test]
fn icy_bright_patch_material() {
    let m = callistos::rendering::materials::PbrMaterial::icy_bright_patch();
    assert!(m.albedo[0] > 0.4);
}

#[test]
fn terrain_shader_exposure() {
    let s = callistos::rendering::shaders::ShaderData::terrain();
    assert!(s.exposure > 0.0);
    assert!(s.gamma > 2.0);
}