Struct gltf::khr_lights_punctual::Light
source · pub struct Light<'a> { /* private fields */ }
Expand description
A light in the scene.
Implementations§
source§impl<'a> Light<'a>
impl<'a> Light<'a>
sourcepub fn intensity(&self) -> f32
pub fn intensity(&self) -> f32
Intensity of the light source. point
and spot
lights use luminous intensity
in candela (lm/sr) while directional
lights use illuminance in lux (lm/m^2).
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Light<'a>
impl<'a> Send for Light<'a>
impl<'a> Sync for Light<'a>
impl<'a> Unpin for Light<'a>
impl<'a> UnwindSafe for Light<'a>
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