Layered Lit Materials In Unity HDRP
In many games, it is often of benefit to blend multiple materials (like grass and dirt) together in a natural way. HDRP can do it easy!
Today’s Objective: Explore the LayeredLit and LayeredLitTessellation material shaders available in Unity HDRP to layer textures.
Creating a LayeredLit material:
After creating a new material, switch it to either “HDRP/LayeredLit” or “HDRP/LayeredLitTessellation” shader.
Set the number of individual layers you want this material to contain, and the mask used to transition between them:
I’m using a simple noise texture as the mask for this example.
Next, you need to set the textures that will make up the layers of the material.
For each layer, the shader can either use an existing material, or a new material created solely for this material layer.
Do this for every layer.
After applying the material to a GameObject in your scene if you haven’t already, you can see the results: