Guide to Making a Beautiful Game: LayeredLit in HDRP

Hello all!

Today, I will be going over how to layer texture maps using LayeredLit!

Instead of going into a 3D program and changing the UV Map, you can do similar changes by just using this shader!

I added moss to the cobblestone road

Adding the LayeredLit Shader

This is the same as adding the LitTessellation shader from the last post but instead of using 1 material, we can use 2 or more!

  1. Make a new material and change the shader to HDRP/LayeredLit or LayeredLitTessellation.
  2. Under Layer List, drag in the materials you wish to use. Your main material should be the star of the show. In my case, I used the cobblestone.
  3. Nothing should change at the point because we need a Layer Mask. Much like the height mask, it’s a greyscale image where the white parts say where to add the second layer. Make a Layer Mask by changing the levels on your first layer’s Height Map, then inverting the image as seen below. Remember to save it with a different name, you still need the original height map!
Left: Height Map | Right: Layer Mask

4. After setting up the Layer Mask, assign it where it says Layer Mask.

If you are using tessellation, you should set both layers with the main layer’s height map. If you don’t, the second layer will just be flat or look weird.

That was LayeredLit. UV mapping is a pain, I’m glad this is a choice!

Next, I will go over Decals! Using decals in HDRP is so easy!

Thank you for your time!

--

--

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
Marcus Cohee

Marcus Cohee

I am starting Unity and learning the ropes as I go! Let’s take this journey together!