pub struct LightInfoData {
pub base: ObjInterfaceData,
pub light_type: LightType,
pub props: LightProperties,
pub light_to_world: [f32; 16],
pub attenuation: [f32; 3],
pub cutoff_distance: f32,
pub inner_cone: f32,
pub outer_cone: f32,
pub falloff: f32,
}Expand description
Parsed plLightInfo data.
Fields§
§base: ObjInterfaceData§light_type: LightType§props: LightProperties§light_to_world: [f32; 16]Light-to-world transform. For directional lights, the Z-axis (m[8..11]) gives the world-space light direction.
attenuation: [f32; 3]§cutoff_distance: f32§inner_cone: f32§outer_cone: f32§falloff: f32Implementations§
Trait Implementations§
Source§impl Clone for LightInfoData
impl Clone for LightInfoData
Source§fn clone(&self) -> LightInfoData
fn clone(&self) -> LightInfoData
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 LightInfoData
impl RefUnwindSafe for LightInfoData
impl Send for LightInfoData
impl Sync for LightInfoData
impl Unpin for LightInfoData
impl UnsafeUnpin for LightInfoData
impl UnwindSafe for LightInfoData
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