Struct amethyst_renderer::light::DirectionalLight
[−]
#[repr(C)]pub struct DirectionalLight { pub color: Rgba, pub direction: Vector3<f32>, }
A directional light source.
Fields
color: Rgba
Color of the light in RGBA8 format.
direction: Vector3<f32>
Direction that the light is pointing.
Trait Implementations
impl Clone for DirectionalLight
[src]
fn clone(&self) -> DirectionalLight
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Pod for DirectionalLight
impl Structure<ConstFormat> for DirectionalLight
[src]
fn query(field_name: &str) -> Option<Element<ConstFormat>>
Get the layout of an element by name.
impl Debug for DirectionalLight
[src]
impl PartialEq for DirectionalLight
[src]
fn eq(&self, __arg_0: &DirectionalLight) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DirectionalLight) -> bool
This method tests for !=
.