pub enum LightSource {
Distant(DistantLightSource),
Point(PointLightSource),
Spot(SpotLightSource),
}Expand description
Light source configurations for lighting effects.
Defines different types of light sources used in diffuse and specular lighting filter primitives. Each type has different characteristics and use cases.
Variants§
Distant(DistantLightSource)
Distant light source (infinitely far away, like the sun).
Point(PointLightSource)
Point light source at a specific 3D position.
Spot(SpotLightSource)
Spot light with position, direction, and cone angle.
Trait Implementations§
Source§impl Clone for LightSource
impl Clone for LightSource
Source§fn clone(&self) -> LightSource
fn clone(&self) -> LightSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightSource
impl Debug for LightSource
Source§impl PartialEq for LightSource
impl PartialEq for LightSource
impl StructuralPartialEq for LightSource
Auto Trait Implementations§
impl Freeze for LightSource
impl RefUnwindSafe for LightSource
impl Send for LightSource
impl Sync for LightSource
impl Unpin for LightSource
impl UnsafeUnpin for LightSource
impl UnwindSafe for LightSource
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