> For the complete documentation index, see [llms.txt](https://2yeet.gitbook.io/anvilcsg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://2yeet.gitbook.io/anvilcsg/surfaces-and-content/terrain.md).

# Terrain

Anvil Terrain is an editable mesh terrain made for level design. It is not Unity Terrain: it builds into the same generated map as your brushes, with their lighting, collision and build sections.

With Anvil Terrain you can:

* sculpt with Raise, Smooth and Flatten brushes, or move single vertices, edges and faces
* import a heightmap over one or several terrains
* sew, merge and split terrains to cover large areas
* paint up to 8 materials, by hand or with Auto Paint rules
* scatter trees, rocks and grass, by hand or with Auto Scatter rules
* choose Simple Diffuse or PBR shading
* build with lightmaps, LOD and draw distances

## Pages

| Page                                                                                   | Covers                                                                                       |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [Create and shape terrain](/anvilcsg/surfaces-and-content/terrain/create-and-shape.md) | The Terrain panel, creating terrains, sculpting, Shape, heightmaps, Sew, Merge, Split, keys  |
| [Paint and Auto Paint](/anvilcsg/surfaces-and-content/terrain/paint.md)                | Paint layers, brush settings, layer materials, Auto Paint rules                              |
| [Scatter and Auto Scatter](/anvilcsg/surfaces-and-content/terrain/scatter.md)          | Scatter layers, Objects and Instanced modes, placement settings, Draw Distance, Auto Scatter |
| [Terrain settings](/anvilcsg/surfaces-and-content/terrain/settings.md)                 | Size, reset, shading, texture mapping, collision, build flags, LOD                           |
| [Building terrain](/anvilcsg/surfaces-and-content/terrain/building.md)                 | What a build makes: meshes, lightmaps, LOD, scatter output                                   |

## Right-click menu

Right-click a terrain's surface for:

| Item                                                      | What it does                                                                                                           |
| --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| **Edit Terrain...**                                       | Opens the Terrain panel with Terrain Settings expanded.                                                                |
| **Rename...**                                             | Renames the terrain.                                                                                                   |
| **Sculpt Terrain**, **Paint Terrain**, **Scatter**        | Starts that tool.                                                                                                      |
| **Auto Paint...**, **Auto Scatter...**                    | Opens the rule windows.                                                                                                |
| **Sew Terrains...**                                       | Closes gaps to neighbouring terrains.                                                                                  |
| **Merge Terrains...**                                     | Merges the selected terrains into the one you clicked. Needs two or more.                                              |
| **Split Into Tiles**                                      | 2 x 2, 3 x 3, 4 x 4, 2 x 1 or 1 x 2.                                                                                   |
| **Import Heightmap...**                                   | Opens the heightmap window.                                                                                            |
| **Reset Heights...**, **Reset Planar Edits...**           | See [Terrain settings](/anvilcsg/surfaces-and-content/terrain/settings.md#reset).                                      |
| **Collider Settings...**                                  | Opens Terrain Settings at Collision.                                                                                   |
| **Flags**                                                 | No Collision, No Shadows, Non Static, Layer, Clear All Flags, Terrain Inspector. These apply to all selected terrains. |
| **Edit**, **Organization**, **Transform**, **Visibility** | Cut, copy, paste, duplicate, delete, group, move to a Build Section, snap to grid, hide.                               |

## Terrain Inspector

Press `Shift+I` (or use **Flags > Terrain Inspector...**) to see the selected terrain's name, size, subdivisions and build flags. **Clear All Flags** turns the collider and shadows back on, makes it static and sets the Default layer.
