Log inGet started
Package

probeGI.package

Newest version

This package holds more than this page lists. See all of its files in its world.

readme.md

probeGI

Indirect diffuse light from a field of probes traced against the scene. The probeGI render feature places probes on a grid that follows the camera, traces rays from each every frame through the scene's acceleration structure, keeps each probe's irradiance and distances as small octahedral maps blended over frames, and adds the light those maps hold to every surface in view in a pass of its own.

  • probeGI.renderFeature is the member a scene places.
  • probegi_trace, probegi_classify, probegi_irradiance, probegi_visibility and probegi_apply are the passes it runs.
  • probe_gi_common and probe_gi are the shader modules the passes share.

The light the field adds takes the scene's occlusion channel (@scene.ao, which an ambient occlusion member writes): each surface's light is scaled by the share of its hemisphere the channel leaves open, raised by the multi-bounce fit for the surface's colour. contactOcclusion states how much of that the field takes, 0 to 1; where no member writes the channel the light stands as the field states it. The field resolves occluders at about its finest spacing and above, and the occlusion channel those inside its radius, so a radius under half of baseSpacing keeps the two from occluding the same geometry twice.