Log inGet started
Package

vol_surroundings.computeShader

Newest version

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

README.md

vol_surroundings

States the surroundings grid vol_scatter and media_view light the media by (each feature states its own grid for the view it draws): at each node of a 32 by 16 by 32 grid around the drawn camera (4 units apart across, 2 up), the light a point in the air there takes from its surroundings, the scene's ambient term, the sky and reflection probes the environment captured and the baked light-probe volumes, from every direction at once (zpbr_surroundings_in_scatter_open). The ambient term and the sky reach the node as far as it sees the sky past the static geometry (the sky-visibility field) and past every surface standing over it (zero_overhead_openness over the overhead cover map); the probes and light-probe volumes hold the light where they were captured and hand it on as they hand it a surface there.

That light changes over the room or the sky rather than over a step, so the grid holds it at a few units, and every ray of vol_scatter and media_view reads it trilinearly wherever the medium it marches stands, for eight loads instead of six gathers of the environment. The layout is surroundings_grid.shaderModule's.