pub fn jupitershine_irradiance_lux(jupiter_phase_fraction: f64) -> f64 {
    1.0 + 12.0 * jupiter_phase_fraction.clamp(0.0, 1.0)
}

pub fn dark_side_visibility_index(jupiter_phase_fraction: f64, terrain_albedo: f64) -> f64 {
    jupitershine_irradiance_lux(jupiter_phase_fraction) * terrain_albedo.clamp(0.0, 1.0)
}
