docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 Project’s 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)