pub struct Light {Show 18 fields
pub header: Header,
pub name: String,
pub type_: u8,
pub pose: Pose,
pub diffuse: ColorRGBA,
pub specular: ColorRGBA,
pub attenuation_constant: f32,
pub attenuation_linear: f32,
pub attenuation_quadratic: f32,
pub direction: Vector3,
pub range: f32,
pub cast_shadows: bool,
pub spot_inner_angle: f32,
pub spot_outer_angle: f32,
pub spot_falloff: f32,
pub id: u32,
pub parent_id: u32,
pub intensity: f32,
}Fields§
§header: Header§name: String§type_: u8§pose: Pose§diffuse: ColorRGBA§specular: ColorRGBA§attenuation_constant: f32§attenuation_linear: f32§attenuation_quadratic: f32§direction: Vector3§range: f32§cast_shadows: bool§spot_inner_angle: f32§spot_outer_angle: f32§spot_falloff: f32§id: u32§parent_id: u32§intensity: f32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Light
impl<'de> Deserialize<'de> for Light
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
impl Message for Light
impl StructuralPartialEq for Light
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnwindSafe for Light
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