pub struct DistantLightSource {
pub azimuth: f32,
pub elevation: f32,
}Expand description
Distant light source (infinitely far away, like the sun).
All rays are parallel, creating uniform lighting across the surface. Direction is specified using spherical coordinates (azimuth and elevation).
Fields§
§azimuth: f32§elevation: f32Trait Implementations§
Source§impl Clone for DistantLightSource
impl Clone for DistantLightSource
Source§fn clone(&self) -> DistantLightSource
fn clone(&self) -> DistantLightSource
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 DistantLightSource
impl Debug for DistantLightSource
Source§impl PartialEq for DistantLightSource
impl PartialEq for DistantLightSource
impl StructuralPartialEq for DistantLightSource
Auto Trait Implementations§
impl Freeze for DistantLightSource
impl RefUnwindSafe for DistantLightSource
impl Send for DistantLightSource
impl Sync for DistantLightSource
impl Unpin for DistantLightSource
impl UnsafeUnpin for DistantLightSource
impl UnwindSafe for DistantLightSource
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