probegi_emitters.computeShader
- README.md597 B
- bindings.yaml209 B
- shader.wgsl2.7 KB
This package holds more than this page lists. See all of its files in its world.
README.md
probegi_emitters
Lists the traced scene's emitters: every instance whose material emits light and
whose mesh states a box, in the order of their slots, up to 256. One workgroup
walks every slot of the scene's hit records. Texel (0, 0) holds how many the
list holds and how many the scene has; texel (i + 1, 0) holds emitter i's
bounding sphere (centre, radius) and texel (i + 1, 1) the light its surface
emits, times the field's emissiveGain, with its slot in w. The trace aims
rays at the emitters this list holds; an emitter past the 256th is found by the
probes' own rays alone.