Skip to content

Documentation: indirect_lighting.glsl

Essentuan edited this page Mar 28, 2026 · 2 revisions

/photonics/common/indirect_lighting.glsl (since v0.3.2)

This is the file Photonics uses to sample gi. You can replace this file to control how Photonics samples gi.

Usage:

// There are many globals defined here, you should look at Photonics's included shaders to see what you have access to.

vec3 ph_sample_indirect_impl();

Clone this wiki locally