Struct dae_parser::DirectionalLight
source · 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 copy 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.