Builtin Library
- ..
- README.md495 B
- module.wgsl1.0 KB
README.md
terrain_cell
The height of the ground inside one cell of a landscape's lattice of samples
(zero_terrain_cell_height): the cell's two triangles, split along the
diagonal from its +Z corner to its +X corner. It is the surface a Terrain's
collider holds, its mesh draws and terrainHeightfield.cellHeight answers, so
a kernel that reads a landscape's height between its samples through it puts a
point on that same ground.
#include "@builtin::systems.terrainSystem.terrain_cell"