pub struct Atmosphere {
pub height: f32,
pub rayleigh: Rayleigh,
pub mie: Mie,
pub absorption: Absorption,
pub albedo: Vec3,
pub multiple_scattering_factor: f32,
}Fields§
§height: f32Height of the atmosphere from a celestial body’s surface in kilometers.
Clamped to max(height, 0)
rayleigh: RayleighThe Rayleigh scattering component.
mie: MieThe Mie scattering component.
absorption: AbsorptionThe absorption / Ozone component.
albedo: Vec3The average albedo of the ground used to model light bounced off the planet’s surface.
multiple_scattering_factor: f32A weight for multiple scattering in the atmosphere.
Auto Trait Implementations§
impl Freeze for Atmosphere
impl RefUnwindSafe for Atmosphere
impl Send for Atmosphere
impl Sync for Atmosphere
impl Unpin for Atmosphere
impl UnwindSafe for Atmosphere
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more