pub struct CloudShell3D {
pub centre: [f64; 3],
pub radius: f64,
pub color: Color,
pub coverage: f32,
pub opacity: f32,
}Expand description
A translucent spherical shell drawn over the surface: clouds, a night arc, or a coverage wash.
Fields§
§centre: [f64; 3]Scene-space centre of the shell.
radius: f64Radius of the shell in scene units.
color: Color§coverage: f32Fraction of the shell that is cloud, 0..=1.
opacity: f32Shell opacity at full coverage, 0..=1.
Implementations§
Source§impl CloudShell3D
impl CloudShell3D
Sourcepub fn effective_opacity(&self) -> f32
pub fn effective_opacity(&self) -> f32
Opacity after applying the coverage ramp.
The reference ramps cloud opacity from clear to full as density rises; clamping here keeps every consumer on the same curve.
Trait Implementations§
Source§impl Clone for CloudShell3D
impl Clone for CloudShell3D
impl Copy for CloudShell3D
Source§impl Debug for CloudShell3D
impl Debug for CloudShell3D
Source§impl PartialEq for CloudShell3D
impl PartialEq for CloudShell3D
impl StructuralPartialEq for CloudShell3D
Auto Trait Implementations§
impl Forget for CloudShell3D
impl Freeze for CloudShell3D
impl Move for CloudShell3D
impl RefUnwindSafe for CloudShell3D
impl Send for CloudShell3D
impl Sync for CloudShell3D
impl Unpin for CloudShell3D
impl UnsafeUnpin for CloudShell3D
impl UnwindSafe for CloudShell3D
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