pub struct DirectionalLight {
pub color: Vec3,
pub intensity: f32,
pub direction: Vec3,
pub distance: f32,
}
Expand description
Describes how directional lights (sun lights) and their shadows should be processed.
Fields§
§color: Vec3
Color of the light.
intensity: f32
Constant multiplier for the light.
direction: Vec3
Direction of the sun.
distance: f32
Distance from the camera that shadows should be calculated.
Implementations§
Source§impl DirectionalLight
impl DirectionalLight
pub fn update_from_changes(&mut self, change: DirectionalLightChange)
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 moreAuto Trait Implementations§
impl Freeze for DirectionalLight
impl RefUnwindSafe for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Unpin 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