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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more