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