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]
fn clone(&self) -> SunLight
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Pod for SunLight
[src]
impl Structure<ConstFormat> for SunLight
[src]
fn query(field_name: &str) -> Option<Element<ConstFormat>>
[src]
Get the layout of an element by name.
impl Debug for SunLight
[src]
impl PartialEq for SunLight
[src]
fn eq(&self, __arg_0: &SunLight) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SunLight) -> bool
[src]
This method tests for !=
.