Struct dae_parser::DirectionalLight
source · [−]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
sourceimpl Clone for DirectionalLight
impl Clone for DirectionalLight
sourcefn clone(&self) -> DirectionalLight
fn clone(&self) -> DirectionalLight
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DirectionalLight
impl Debug for DirectionalLight
sourceimpl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
sourcefn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Unpin for DirectionalLight
impl UnwindSafe for DirectionalLight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more