Struct amethyst_renderer::light::SpotLight
[−]
#[repr(C)]pub struct SpotLight { pub angle: Deg<f32>, pub center: Point3<f32>, pub color: Rgba, pub direction: Vector3<f32>, pub intensity: f32, pub radius: f32, pub smoothness: f32, }
A spot light source.
Fields
angle: Deg<f32>
Opening angle of the light cone.
center: Point3<f32>
Location of the light source in three dimensional space.
color: Rgba
Color of the light in RGBA8 format.
direction: Vector3<f32>
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Pod for SpotLight
impl Structure<ConstFormat> for SpotLight
[src]
fn query(field_name: &str) -> Option<Element<ConstFormat>>
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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SpotLight) -> bool
This method tests for !=
.