Skip to main content

Module lights

Module lights 

Source
Expand description

Light types and light management for Proof Engine.

Supports up to 64 simultaneous lights with spatial grid queries, seven distinct light types, and animated light patterns.

Structs§

AnimatedLight
A wrapper around any light type that applies an animation pattern.
AreaLight
An area light that emits from a shaped surface. Uses an approximated most-representative-point (MRP) technique for irradiance.
CascadeShadowParams
Parameters for cascaded shadow mapping on directional lights.
Color
Linear HDR color.
DirectionalLight
An infinitely distant directional light (e.g., the sun).
EmissiveGlyph
Auto light source generated from a bright glyph that exceeds the emission threshold.
IESProfile
Photometric intensity distribution sampled from IES data. Uses bilinear interpolation on a 2D (vertical angle, horizontal angle) grid.
LightId
Unique identifier for a light in the manager.
LightManager
Manages up to 64 simultaneous lights with spatial grid queries.
LightManagerStats
Statistics about the current state of the light manager.
Mat4
A simple 4x4 matrix stored in column-major order.
PointLight
An omnidirectional point light source.
SpatialLightGrid
A spatial grid that maps world-space cells to sets of light IDs for fast queries.
SpotLight
A conical spot light with inner/outer cone angles and optional cookie texture.
Vec3
A simple 3-component vector for positions, directions, and colors.

Enums§

AnimationPattern
Describes an animated light pattern.
AreaShape
Shape of the area light’s emitting surface.
AttenuationModel
Describes how light intensity falls off with distance.
Light
Unified light type that wraps all supported light variants.

Constants§

MAX_LIGHTS
Maximum number of simultaneous lights the manager supports.