Skip to main content

Module ssgi

Module ssgi 

Source
Expand description

Screen-space global illumination (SSGI) configuration. Backend-agnostic resolve of the authored PostProcessConfig SSGI fields into clamped settings, plus the per-frame GPU uniform. SSGI is a refinement of SSR: it reuses the same depth + normal pre-pass G-buffer and screen-space ray-march, but integrates bounced radiance over a cosine-weighted hemisphere instead of along a single reflection vector, and adds the result on top of the IBL ambient term. The hemisphere gather itself lives in each backend’s shader; this module owns only the parameter math so it can be unit-tested without a GPU.

Structs§

SsgiSettings
Clamped SSGI tunables resolved from the authored asset fields. Held by the backend and turned into a per-frame SsgiParams once the camera is known.