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:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vincent Taylor

Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.