pub struct DirectionalLightDesc {
pub direction: [f32; 3],
pub color: [f32; 3],
pub intensity_lux: f32,
}Expand description
Directional light (sun, moon). Infinite range, parallel rays.
Fields§
§direction: [f32; 3]Light direction (normalized, points toward light source).
color: [f32; 3]Light color (RGB linear).
intensity_lux: f32Illuminance in lux.
Trait Implementations§
Source§impl Clone for DirectionalLightDesc
impl Clone for DirectionalLightDesc
Source§fn clone(&self) -> DirectionalLightDesc
fn clone(&self) -> DirectionalLightDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectionalLightDesc
impl Debug for DirectionalLightDesc
Source§impl Default for DirectionalLightDesc
impl Default for DirectionalLightDesc
Source§impl<'de> Deserialize<'de> for DirectionalLightDesc
impl<'de> Deserialize<'de> for DirectionalLightDesc
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
Source§impl PartialEq for DirectionalLightDesc
impl PartialEq for DirectionalLightDesc
Source§impl Serialize for DirectionalLightDesc
impl Serialize for DirectionalLightDesc
impl Copy for DirectionalLightDesc
impl StructuralPartialEq for DirectionalLightDesc
Auto Trait Implementations§
impl Freeze for DirectionalLightDesc
impl RefUnwindSafe for DirectionalLightDesc
impl Send for DirectionalLightDesc
impl Sync for DirectionalLightDesc
impl Unpin for DirectionalLightDesc
impl UnsafeUnpin for DirectionalLightDesc
impl UnwindSafe for DirectionalLightDesc
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