pub struct SpotLightDef {
pub id: String,
pub position: [f32; 3],
pub direction: [f32; 3],
pub color: [f32; 3],
pub intensity: f32,
pub range: f32,
pub inner_cone_degrees: f32,
pub outer_cone_degrees: f32,
}Fields§
§id: String§position: [f32; 3]§direction: [f32; 3]§color: [f32; 3]§intensity: f32§range: f32§inner_cone_degrees: f32Inner cone angle in degrees.
outer_cone_degrees: f32Outer cone angle in degrees.
Trait Implementations§
Source§impl Clone for SpotLightDef
impl Clone for SpotLightDef
Source§fn clone(&self) -> SpotLightDef
fn clone(&self) -> SpotLightDef
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 SpotLightDef
impl Debug for SpotLightDef
Source§impl<'de> Deserialize<'de> for SpotLightDef
impl<'de> Deserialize<'de> for SpotLightDef
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
Auto Trait Implementations§
impl Freeze for SpotLightDef
impl RefUnwindSafe for SpotLightDef
impl Send for SpotLightDef
impl Sync for SpotLightDef
impl Unpin for SpotLightDef
impl UnsafeUnpin for SpotLightDef
impl UnwindSafe for SpotLightDef
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