[][src]Struct crystal_engine::PointLight

pub struct PointLight {
    pub position: Vector3<f32>,
    pub color: LightColor,
    pub attenuation: PointLightAttenuation,
}

A pointlight in the world.

Note: Not implemented yet

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

Fields

position: Vector3<f32>

The position of the light in the world.

color: LightColor

The color of the light in the world.

attenuation: PointLightAttenuation

The attenuation of the light, or how much the light decays over a distance. PointLightAttenuation implements Default so you can take a good initial value, or you can tune this until the end of time.

Trait Implementations

impl Default for PointLight[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.