Skip to main content

Module lighting

Module lighting 

Expand description

Lighting uniform structures.

Structs§

CullingUniformsData
Data for the light culling compute shader.
DirectionalLightUniform
Data for a single directional light, formatted for GPU consumption.
LightingUniforms
The structure of the global lighting uniform buffer.
PointLightUniform
Data for a single point light, formatted for GPU consumption.
SpotLightUniform
Data for a single spot light, formatted for GPU consumption.

Constants§

MAX_DIRECTIONAL_LIGHTS
Constants for maximum light counts.
MAX_POINT_LIGHTS
Maximum number of point lights supported in the global lighting buffer.
MAX_SPOT_LIGHTS
Maximum number of spot lights supported in the global lighting buffer.