#[repr(C)]pub struct DirectionalLightData {
pub dir: Vec3f,
pub colour: Vec4f,
pub shadow_map_info: ShadowMapInfo,
}
Expand description
GPU friendly structure for directional lights
Fields§
§dir: Vec3f
§colour: Vec4f
§shadow_map_info: ShadowMapInfo
Trait Implementations§
Source§impl Clone for DirectionalLightData
impl Clone for DirectionalLightData
Source§fn clone(&self) -> DirectionalLightData
fn clone(&self) -> DirectionalLightData
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 moreAuto Trait Implementations§
impl Freeze for DirectionalLightData
impl RefUnwindSafe for DirectionalLightData
impl Send for DirectionalLightData
impl Sync for DirectionalLightData
impl Unpin for DirectionalLightData
impl UnwindSafe for DirectionalLightData
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