Skip to content

Documentation: ph_samplers.glsl

Essentuan edited this page Mar 28, 2026 · 2 revisions

/photonics/ph_samplers.glsl (since v0.3.0)

Photonics API for sampling its lighting outputs. These methods are always available, even if when using photonics.lightingMode = OFF.

sample_photonics_direct

vec3 sample_photonics_direct(vec2 coord);

Returns the direct contribution for a given coord, where coord is 0..1.

sample_photonics_handheld

vec3 sample_photonics_handheld(vec2 coord);

Returns the handheld contribution for a given coord, where coord is 0..1.

Clone this wiki locally