[−][src]Enum easy_gltf::Light
Represents a light.
Variants
Directional lights are light sources that act as though they are
infinitely far away and emit light in the direction
. Because it is at
an infinite distance, the light is not attenuated. Its intensity is
defined in lumens per metre squared, or lux (lm/m2).
Fields of Directional
Point lights emit light in all directions from their position
in space;
The brightness of the light attenuates in a physically correct manner as
distance increases from the light's position (i.e. brightness goes like
the inverse square of the distance). Point light intensity is defined in
candela, which is lumens per square radian (lm/sr).
Fields of Point
Spot lights emit light in a cone in direction
. The angle and falloff
of the cone is defined using two numbers, the inner_cone_angle
and
outer_cone_angle
. As with point lights, the brightness also attenuates
in a physically correct manner as distance increases from the light's
position (i.e. brightness goes like the inverse square of the distance).
Spot light intensity refers to the brightness inside the
inner_cone_angle
(and at the location of the light) and is defined in
candela, which is lumens per square radian (lm/sr). Engines that don't
support two angles for spotlights should use outer_cone_angle as the
spotlight angle (leaving inner_cone_angle
to implicitly be 0
).
Fields of Spot
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnwindSafe for Light
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,