pub struct DirectionalLight {
pub color: Box<[f32; 3]>,
}
Expand description
Describes a directional light source.
The light’s default direction vector in local coordinates is [0,0,-1], pointing down the negative z axis. The actual direction of the light is defined by the transform of the node where the light is instantiated.
Fields§
§color: Box<[f32; 3]>
Contains three floating-point numbers specifying the color of the light.
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
Source§impl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
Source§fn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Converts to this type from the input type.
Auto 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