pub struct Sky {
pub zenith: [f32; 3],
pub horizon: [f32; 3],
pub sun_dir: Option<[f32; 3]>,
}Expand description
A simple gradient sky (zenith→horizon) with an optional sun direction.
Fields§
§zenith: [f32; 3]§horizon: [f32; 3]§sun_dir: Option<[f32; 3]>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sky
impl<'de> Deserialize<'de> for Sky
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Sky
Auto Trait Implementations§
impl Freeze for Sky
impl RefUnwindSafe for Sky
impl Send for Sky
impl Sync for Sky
impl Unpin for Sky
impl UnsafeUnpin for Sky
impl UnwindSafe for Sky
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