Skip to content

Documentation: ReSTIR Gi Modifier

Essentuan edited this page Mar 28, 2026 · 2 revisions

ReSTIR Gi Modifier (since v0.3.2)

/photonics/modifiers/restir_gi_modifier.glsl

Intercepts the value ReSTIR uses for Gi when photonics.restirCombinedGi = true. Disabled using PH_RESTIR_GI_MODIFIER_DISABLED.

You should use this when you modify the gi color after you sample it, as with combined gi it will be baked into sample_photonics_direct.

Usage:

void modify_restir_gi(inout vec3 color);

Clone this wiki locally