Struct amethyst_renderer::SpotLight [−][src]
#[repr(C)]pub struct SpotLight { pub angle: f32, pub center: [f32; 3], pub color: Rgba, pub direction: [f32; 3], pub intensity: f32, pub radius: f32, pub smoothness: f32, }
A spot light source.
Fields
angle: f32
Opening angle of the light cone in degrees.
center: [f32; 3]
Location of the light source in three dimensional space.
color: Rgba
Color of the light in RGBA8 format.
direction: [f32; 3]
Direction that the light is pointing.
intensity: f32
Brightness of the light source, in lumens.
radius: f32
Maximum radius of the point light's affected area.
smoothness: f32
Smoothness of the light-to-dark transition from the center to the radius.
Trait Implementations
impl Clone for SpotLight[src]
impl Clone for SpotLightfn clone(&self) -> SpotLight[src]
fn clone(&self) -> SpotLightReturns 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 SpotLight[src]
impl Pod for SpotLightimpl Structure<ConstFormat> for SpotLight[src]
impl Structure<ConstFormat> for SpotLightfn 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 SpotLight[src]
impl Debug for SpotLightfn 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 SpotLight[src]
impl PartialEq for SpotLightfn eq(&self, other: &SpotLight) -> bool[src]
fn eq(&self, other: &SpotLight) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SpotLight) -> bool[src]
fn ne(&self, other: &SpotLight) -> boolThis method tests for !=.
impl Default for SpotLight[src]
impl Default for SpotLightimpl From<SpotLight> for Light[src]
impl From<SpotLight> for Light