Vixen
dd8b0a81

Engine · guide

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.

Edit this page on GitHub

Documents

Next

  • The terrain heightfield — One grid of 16-bit heights over an authored range, a stack of non-destructive edit layers, the paint channels and the hole mask.
  • Terrain brushes — One brush — a shape, a falloff, a radius in metres and a spacing — answering one question for three different tools.
  • Sculpting a heightfield — The seven sculpt kernels plus holes and paint, the stroke record that makes a drag undoable, and the ray that turns a pointer into a sample.
  • Drawing a terrain — A quadtree with a vertex morph, one instanced grid patch, no vertex buffer, and one draw call however many patches it takes.
  • Sculpt and paint mode — The viewport mode the terrain tools live in — two categories sharing the digits, one drag as one undo entry, and the panel as settings objects rather than dialog code.