Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

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".