Skip to main content

Module lighting

Module lighting 

Source
Expand description

Advanced lighting system.

Provides a full real-time lighting model for Proof Engine:

  • PointLight — omnidirectional point source with attenuation
  • SpotLight — cone-shaped light with inner/outer angle
  • DirectionalLight — infinite-distance parallel light (sun/moon)
  • AmbientLight — global fill light with optional gradient sky
  • LightProbe — pre-sampled spherical environment light at a point
  • ShadowMap — depth buffer parameters for shadow rendering
  • LightCuller — tile-based forward+ light culling
  • VolumetricConfig — god-ray / light shaft parameters
  • LightManager — owns all lights, updates, culls

All attenuation models accept a custom MathFunction falloff for mathematical attenuation curves beyond linear/quadratic.

Structs§

AmbientLight
AnimatedPointLight
A point light with a live animation.
AnimatedSpotLight
A spot light with a live animation.
CsmSystem
Full cascaded shadow map system.
DirectionalLight
DiskLight
Disk (circular) area light.
EmissiveAccumulator
Accumulates auto-light-sources from bright/emissive glyphs.
EmissiveSource
ExposureSettings
HDR exposure and tonemapping settings.
IblEnvironment
Prefiltered environment map for image-based lighting.
IesProfile
A light intensity profile loaded from an IES (Illuminating Engineering Society) file.
LightBaker
CPU-side light baking utility.
LightCuller
Tile-based light culler: divides the screen into NxM tiles and assigns only the visible lights to each tile.
LightId
LightManager
Central light registry. Owns all lights and manages culling.
LightMap
A baked light map storing per-texel irradiance.
LightProbe
Pre-sampled spherical environment light at a world-space position.
LightTile
Tile descriptor for tile-based forward+ light culling.
PbrLighting
Cook-Torrance PBR BRDF evaluated on the CPU.
PbrMaterial
Physical material parameters for PBR lighting.
PointLight
RectLight
Rectangular area light for soft illumination.
ShadowCascade
Cascade definition for CSM (Cascaded Shadow Maps).
ShadowMapConfig
SpotLight
SsaoConfig
Screen-space ambient occlusion parameters.
VolumetricConfig
Volumetric light shaft / god ray parameters.

Enums§

Attenuation
How a light’s intensity falls off with distance.
LightAnimation
How a light’s intensity varies over time.
ToneMapMode