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§
- Animated
Light - A wrapper around any light type that applies an animation pattern.
- Area
Light - An area light that emits from a shaped surface. Uses an approximated most-representative-point (MRP) technique for irradiance.
- Cascade
Shadow Params - Parameters for cascaded shadow mapping on directional lights.
- Color
- Linear HDR color.
- Directional
Light - An infinitely distant directional light (e.g., the sun).
- Emissive
Glyph - 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.
- Light
Manager - Manages up to 64 simultaneous lights with spatial grid queries.
- Light
Manager Stats - Statistics about the current state of the light manager.
- Mat4
- A simple 4x4 matrix stored in column-major order.
- Point
Light - An omnidirectional point light source.
- Spatial
Light Grid - A spatial grid that maps world-space cells to sets of light IDs for fast queries.
- Spot
Light - 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§
- Animation
Pattern - Describes an animated light pattern.
- Area
Shape - Shape of the area light’s emitting surface.
- Attenuation
Model - 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.