[][src]Struct crystal_engine::state::LightState

pub struct LightState {
    pub directional: FixedVec<DirectionalLight>,
    pub point: FixedVec<PointLight>,
}

The state of the lights in the game. Lights come in two flavors.

Directional lights: light sources that shine in a certain direction, e.g. the sun.

Point lights: lights that shine equally in all directions, e.g. a lightbulb.

Note: lights are limited to 100 of each type. Currently the shaders do not support more than 100 light sources at a time. Please open an issue if you need more light sources.

Fields

directional: FixedVec<DirectionalLight>

A FixedVec of directional lights

point: FixedVec<PointLight>

A FixedVec of point lights.

Note: not implemented yet

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.