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 DirectionalLightfn clone(&self) -> DirectionalLight[src]
fn clone(&self) -> DirectionalLightReturns 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 DirectionalLightimpl Structure<ConstFormat> for DirectionalLight[src]
impl Structure<ConstFormat> for DirectionalLightfn 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 DirectionalLightfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for DirectionalLight[src]
impl PartialEq for DirectionalLightfn eq(&self, other: &DirectionalLight) -> bool[src]
fn eq(&self, other: &DirectionalLight) -> boolThis 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) -> boolThis method tests for !=.
impl Default for DirectionalLight[src]
impl Default for DirectionalLightimpl From<DirectionalLight> for Light[src]
impl From<DirectionalLight> for Lightfn from(dir: DirectionalLight) -> Self[src]
fn from(dir: DirectionalLight) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for DirectionalLight
impl Send for DirectionalLightimpl Sync for DirectionalLight
impl Sync for DirectionalLight