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

The sun's angular radius in degrees.

Color of the light in RGBA8 format.

Direction that the light is pointing.

Brightness of the sun light, in lux.

Trait Implementations

impl Clone for SunLight
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Pod for SunLight
[src]

impl Structure<ConstFormat> for SunLight
[src]

Get the layout of an element by name.

impl Debug for SunLight
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SunLight
[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 SunLight
[src]

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

impl From<SunLight> for Light
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for SunLight

impl Sync for SunLight