Function Kataglyphis::assignPunctualShadowSlots

Function Kataglyphis::assignPunctualShadowSlots#

Function Documentation#

std::vector<PunctualShadowSlot> Kataglyphis::assignPunctualShadowSlots(std::span<glm::vec4> rows, const glm::vec3 &boundsMin, const glm::vec3 &boundsMax)#

Gives the first MAX_SHADOWED_PUNCTUAL_LIGHTS point and spot lights of packed rows a cube: their row 3 becomes [cos_outer, slot + 1, near, far], 0 in .y meaning unshadowed (Rust’s zero pad).