pub struct DirectionalLight {
pub direction: Vec3,
pub color: Color,
pub intensity: f32,
pub cast_shadows: bool,
pub enabled: bool,
pub cascade_params: CascadeShadowParams,
pub angular_diameter: f32,
}Expand description
An infinitely distant directional light (e.g., the sun).
Fields§
§direction: Vec3§color: Color§intensity: f32§cast_shadows: bool§enabled: bool§cascade_params: CascadeShadowParams§angular_diameter: f32Angular diameter in radians (for soft shadows, default ~0.0093 for the sun).
Implementations§
Trait Implementations§
Source§impl Clone for DirectionalLight
impl Clone for DirectionalLight
Source§fn clone(&self) -> DirectionalLight
fn clone(&self) -> DirectionalLight
Returns a duplicate of the value. Read more
1.0.0 · 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 DirectionalLight
impl Debug for DirectionalLight
Auto Trait Implementations§
impl Freeze for DirectionalLight
impl RefUnwindSafe for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Unpin for DirectionalLight
impl UnsafeUnpin for DirectionalLight
impl UnwindSafe for DirectionalLight
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