Vixen
02b45cc4
csharp
public static class TerrainSculpt

The sculpt kernels: what a stamp does to the ground under it.

Read the guide page for this →

Remarks

Every one of these reads the composite and writes a layer, and that pairing is [docs/plan/31 § D4]'s warning made structural. Eroding a mountain on a layer above the base has to read what the world is, so the flow is right, and write what this layer adds, so the base survives. Reading the layer instead gives erosion that erases everything below it; writing the composite instead gives an edit the next invalidation discards.

Pure functions over a terrain and a stamp. No document, no undo, no dirty tracking — the caller owns those, because it is the caller that knows whether this stamp is one of four hundred in a drag.

Fields and properties (1)

  • public const int NeighbourMargin

    How far a smoothing or erosion kernel reads beyond what it writes.

Methods (10)

Used by (13)

  • TerrainHeightmapPngTestsVixen.Terrain.Tests
  • TerrainHeightmapTestsVixen.Terrain.Tests
  • TerrainLayerTestsVixen.Terrain.Tests
  • TerrainPaintVixen.Terrain
  • TerrainRendererTestsVixen.Rendering.Terrain.Tests
  • TerrainSculptTestsVixen.Terrain.Tests
  • TerrainStoreTestsVixen.Terrain.Tests
  • TerrainStrokeVixen.Terrain
  • TerrainStrokeTestsVixen.Terrain.Tests
  • TerrainWeightStrokeVixen.Terrain
  • TerrainWeightTestsVixen.Terrain.Tests
  • TerrainEditVixen.Editor.Terrain
  • TerrainHoleStrokeVixen.Editor.Terrain