Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Documentation~/terrain-lit-material.md
2024-08-26 23:07:20 +03:00

1.5 KiB
Raw Permalink Blame History

Terrain Lit material

The High Definition Render Pipeline (HDRP) uses the Terrain Lit Shader for Unity Terrain. This Shader is a simpler version of the Lit Shader. A Terrain can use a Terrain Lit Material with up to eight Terrain Layers.

Creating a Terrain Lit Material

To create a new Terrain Lit Shader Material:

  1. Go to your Project window and right-click in the Assets folder
  2. Select Create > Material. This adds a new Material to your Unity Projects Asset folder.
  3. Click on the Material to view it in the Inspector.
  4. Click on the Shader drop-down and select HDRP > TerrainLit.

Refer to Terrain Lit Material Inspector reference for more information.

Using a Terrain Lit Material

To use a Terrain Lit Material, you must assign it to a Terrain:

  1. View the Terrain in the Inspector window and select Terrain Settings.
  2. Either drag and drop or use the radio button to assign your Terrain Lit Material to the Material property.

Using the Paint Holes Tool

If you use the Paint Holes tool on your terrain, enable the Terrain Hole feature in your Project's HDRP Asset. Otherwise, the holes don't appear when you build your application. To do this:

  1. Open your HDRP Asset in the Inspector window.
  2. Go to Rendering and enable Terrain Hole.