surroundings_grid.shaderModule
- README.md636 B
- module.wgsl3.6 KB
This package holds more than this page lists. See all of its files in its world.
README.md
surroundings_grid
The layout of the surroundings grid vol_surroundings writes and vol_scatter
and media_view read: 32 by 16 by 32 nodes, 4 units apart across and 2 up,
its corner moved in whole cells with the camera, from 12 units below the
camera's height. Each node
holds the light the medium's surroundings hand a point of the air there, and
surroundings_grid_at(p, eye) reads it at any point, blended over the eight
nodes around it (a point past the grid takes the nearest of its edge); the
including pass binds the grid as vol_surroundings.
Included with #include "@builtin::systems.volumetrics.surroundings_grid".