From the course: Unity 3D: Lunchtime Lessons

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Layered lit shaders

Layered lit shaders - Unity 3D Tutorial

From the course: Unity 3D: Lunchtime Lessons

Start my 1-month free trial

Layered lit shaders

- [George] Hi, I'm George Maystree. If you've ever wanted to place multiple materials onto a single object, you realize that it can be a challenge in unity. But if you're using HDRP, we have a shader called layered lit, which allows you to apply up to four different HDRP lit shaders to an object. So let's take a look at what we've got. I'm going to go into my assets folder, LayeredLit. And so I've got a bunch of materials here as well as this default material. So what we want to do is create a new material and then use a mask to mask out what materials we want and which ones we don't want. So let me show you what I mean. So we're going to take a look at this mask. I have a mask in the scene and it's called LayeredLitMask. And it's got basically four colors. We're going to be using black, blue, green and red. Now I've also added white just to kind of show you what happens when you use that. But basically, these four colors…

Contents