Struct amethyst_renderer::SunLight [−][src]
#[repr(C)]pub struct SunLight { pub ang_rad: f32, pub color: Rgba, pub direction: [f32; 3], pub intensity: f32, }
A realistic disk-shaped sun light source.
Fields
ang_rad: f32
The sun's angular radius in degrees.
color: Rgba
Color of the light in RGBA8 format.
direction: [f32; 3]
Direction that the light is pointing.
intensity: f32
Brightness of the sun light, in lux.
Trait Implementations
impl Clone for SunLight[src]
impl Clone for SunLightfn clone(&self) -> SunLight[src]
fn clone(&self) -> SunLightReturns 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 SunLight[src]
impl Pod for SunLightimpl Structure<ConstFormat> for SunLight[src]
impl Structure<ConstFormat> for SunLightfn 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 SunLight[src]
impl Debug for SunLightfn 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 SunLight[src]
impl PartialEq for SunLightfn eq(&self, other: &SunLight) -> bool[src]
fn eq(&self, other: &SunLight) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SunLight) -> bool[src]
fn ne(&self, other: &SunLight) -> boolThis method tests for !=.
impl Default for SunLight[src]
impl Default for SunLightimpl From<SunLight> for Light[src]
impl From<SunLight> for Light