Terrain

Every new scene is created with a terrain prefab:

Do not rename the terrain prefab: renaming the terrain may lead to crashes.

Terrain settings in Inspector:

  • HeightMap:

    • Minimum/Maximum Height — the minimum and maximum heights of the terrain. Correspond to 0 and 255 on a heightmap respectively.
    • Maximum Extrusion — the maximum depth of an extrusion.
    • Is Sand/Mud Enabled — enable/disable sand/mud in the scene.
  • Render > Layers — settings for material layers. The order of the layers determines how the layers are stored in material texture maps. Maximum number of layers is 8.

    • Textures — the textures associated with this material. You can select one of the existing textures for a custom material layer.
    • Material:

      • Tiles size — the in-game size of a texture tile. Every Tile size meters the tile will be repeated.
      • Displacement offset — the vertical offset of this type of terrain.
      • Displacement scale — creates a tesselation effect (small unevenness of the terrain):

      • Normals scale — adds contrast to the texture (peaks of the normals texture are made higher and the drops are made lower).

      • Smoothnes — how smooth this material mixes with other materials.
      • MinViscosity — make the material dry and viscous.
      • Wetness params — porosity of the material and and how much the wetness brush affects the material.
      • Terraforming params:

        • Is Static — if true, the vehicles with graders will not be able to use them on this material.
        • Malleability — how loose (granular) the material is. Sand has the value 1 and aphalt has 0.