Guide to Making a Beautiful Game: LayeredLit in HDRP
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!
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!
- Make a new material and change the shader to HDRP/LayeredLit or LayeredLitTessellation.
- 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.
- 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!
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!