Skip to main content

Module ambient

Module ambient 

Source
Expand description

Ambient and indirect lighting for Proof Engine.

Provides screen-space ambient occlusion (SSAO), spherical harmonics for diffuse irradiance, light probe grids with trilinear interpolation, reflection probes with parallax correction, ambient cubes, and hemisphere lighting.

Structsยง

AmbientCube
A 6-directional ambient cube encoding low-frequency lighting from the six axis directions. Simpler than SH but can capture more directional variation than a single ambient color.
AmbientStats
Statistics for the ambient system.
AmbientSystem
Orchestrates all ambient and indirect lighting components.
HemisphereLight
A hemisphere light with a sky color and ground color that blends based on the surface normal.
LightProbe
A single light probe storing SH coefficients at a world position.
LightProbeGrid
A 3D grid of SH light probes with trilinear interpolation.
ReflectionProbe
A reflection probe that captures a cubemap for specular reflections. Supports parallax correction for box-shaped influence volumes.
ReflectionProbeManager
Manages multiple reflection probes and blends between them.
SphericalHarmonics9
Second-order (L=2) spherical harmonics with 9 coefficients per color channel. Used for encoding low-frequency irradiance from environment lighting.
SsaoConfig
Configuration for screen-space ambient occlusion.
SsaoKernel
Generates and stores the SSAO sampling kernel and noise rotation vectors.
SsaoResult
The computed SSAO buffer.