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

Opening angle of the light cone in degrees.

Location of the light source in three dimensional space.

Color of the light in RGBA8 format.

Direction that the light is pointing.

Brightness of the light source, in lumens.

Maximum radius of the point light's affected area.

Smoothness of the light-to-dark transition from the center to the radius.

Trait Implementations

impl Clone for SpotLight
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Pod for SpotLight
[src]

impl Structure<ConstFormat> for SpotLight
[src]

Get the layout of an element by name.

impl Debug for SpotLight
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SpotLight
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for SpotLight
[src]

Returns the "default value" for a type. Read more

impl From<SpotLight> for Light
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for SpotLight

impl Sync for SpotLight