Struct caper::lighting::Lighting [] [src]

pub struct Lighting {
    pub directional_tex: RefCell<Texture1d>,
    // some fields omitted
}

Struct containing the data for the lighting system

Fields

Texture representing the positions of the directional lights

Methods

impl Lighting
[src]

[src]

Create a new lighting system

[src]

Add a direction light with direction dir to the lighting system

[src]

Regenerates the tex that is used to send location to shader Note: must be called when mutating any lighting data

[src]

Get a ref to a directional light

[src]

Get a ref to a directional light from its name, returning the first found