Struct gltf_json::extensions::scene::khr_lights_punctual::Spot
source · pub struct Spot {
pub inner_cone_angle: f32,
pub outer_cone_angle: f32,
}
Expand description
Spot light parameters.
Fields§
§inner_cone_angle: f32
Angle in radians from centre of spotlight where falloff begins.
outer_cone_angle: f32
Angle in radians from centre of spotlight where falloff ends.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Spot
impl<'de> Deserialize<'de> for Spot
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 RefUnwindSafe for Spot
impl Send for Spot
impl Sync for Spot
impl Unpin for Spot
impl UnwindSafe for Spot
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