cubos::engine::ShadowAtlas::Slot struct

Slot for a shadow map in the shadow atlas.

Constructors, destructors, conversion operators

Slot(glm::vec2 size, glm::vec2 offset, int casterId)
Constructs.

Public variables

glm::vec2 size
Shadow map size, in normalized coordinates.
glm::vec2 offset
Shadow map offset, in normalized coordinates.
int casterId
Id of the shadow caster (-1 if none).

Function documentation

cubos::engine::ShadowAtlas::Slot::Slot(glm::vec2 size, glm::vec2 offset, int casterId)

Constructs.

Parameters
size Shadow map size, in normalized coordinates.
offset Shadow map offset, in normalized coordinates.
casterId Id of the shadow caster (-1 if none).