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]
fn clone(&self) -> SpotLight
[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 SpotLight
[src]
impl Structure<ConstFormat> for SpotLight
[src]
fn query(field_name: &str) -> Option<Element<ConstFormat>>
[src]
Get the layout of an element by name.
impl Debug for SpotLight
[src]
impl PartialEq for SpotLight
[src]
fn eq(&self, __arg_0: &SpotLight) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SpotLight) -> bool
[src]
This method tests for !=
.