Struct amethyst_renderer::DirectionalLight [−][src]
A directional light source.
Fields
color: Rgba
Color of the light in RGBA8 format.
direction: [f32; 3]
Direction that the light is pointing.
Trait Implementations
impl Clone for DirectionalLight
[src]
impl Clone for DirectionalLight
fn clone(&self) -> DirectionalLight
[src]
fn clone(&self) -> DirectionalLight
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Pod for DirectionalLight
[src]
impl Pod for DirectionalLight
impl Structure<ConstFormat> for DirectionalLight
[src]
impl Structure<ConstFormat> for DirectionalLight
fn query(field_name: &str) -> Option<Element<ConstFormat>>
[src]
fn query(field_name: &str) -> Option<Element<ConstFormat>>
Get the layout of an element by name.
impl Debug for DirectionalLight
[src]
impl Debug for DirectionalLight
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DirectionalLight
[src]
impl PartialEq for DirectionalLight
fn eq(&self, other: &DirectionalLight) -> bool
[src]
fn eq(&self, other: &DirectionalLight) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DirectionalLight) -> bool
[src]
fn ne(&self, other: &DirectionalLight) -> bool
This method tests for !=
.
impl Default for DirectionalLight
[src]
impl Default for DirectionalLight
impl From<DirectionalLight> for Light
[src]
impl From<DirectionalLight> for Light
fn from(dir: DirectionalLight) -> Self
[src]
fn from(dir: DirectionalLight) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Sync for DirectionalLight