[][src]Struct crystal_engine::DirectionalLight

pub struct DirectionalLight {
    pub direction: Vector3<f32>,
    pub color: LightColor,

A direction lightsource in the world.

Note: lights coming from the sky are going down, so their direction would be Vector3::new(0.0, -1.0, 0.0)

For more information, see the amazing tutorial at https://learnopengl.com/Lighting/Colors


direction: Vector3<f32>

The direction of the light source

color: LightColor

The color of the light source.

Trait Implementations

impl Default for DirectionalLight[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> SafeBorrow<T> for T[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.