pub enum LightType {
Directional,
Point,
Spot,
}Expand description
Describes the kind of light source being represented.
Variants§
Directional
An infinitely distant directional light (e.g. sunlight). The direction
field carries the unit vector pointing away from the light source.
Point
A positional point light with inverse-square falloff.
Spot
A positional spotlight with a cone defined by a unit direction and a
half-angle whose cosine is stored in the light’s spot_cos field.
Trait Implementations§
impl Copy for LightType
impl StructuralPartialEq for LightType
Auto Trait Implementations§
impl Freeze for LightType
impl RefUnwindSafe for LightType
impl Send for LightType
impl Sync for LightType
impl Unpin for LightType
impl UnsafeUnpin for LightType
impl UnwindSafe for LightType
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