Vixen
dd8b0a81

Engine · guide

Grass

A field scattered from a rule and never saved — the density curve, the hash both halves share, and the ring of buffers that makes it cost a fixed amount of memory.

Edit this page on GitHub

Documents

Next

  • Foliage instances — Trees and rocks stored in a cell grid, the six rules that refuse a placement, and the activation radius that decides which of them are worth a physics body.
  • Painting a terrain — The four paint tools, the layer weights that sum to one, the reusable ground a layer names, and the undo record that has to hold all of them.
  • Drawing grass — Cells scattered as they come into range and blades culled every frame — the CPU reference of a compute pass, and the seam test that holds the two together.
  • Drawing foliage — Cells culled as objects, instances culled within them, LOD decided per instance, and one indirect command per level.