pub struct SkyNav {
pub zenith: [f32; 3],
pub horizon: [f32; 3],
pub sun_dir: [f32; 3],
}Expand description
A simple gradient sky (zenith→horizon) + sun direction. Renderer-agnostic; the browser maps this onto its own atmosphere.
Fields§
§zenith: [f32; 3]§horizon: [f32; 3]§sun_dir: [f32; 3]Trait Implementations§
Auto Trait Implementations§
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