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 - Unity 3D Tutorial
From the course: Unity 3D: Lunchtime Lessons
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
USD files in Unity5m 32s
-
Substance and Unity5m 42s
-
Add ambient sound4m 24s
-
Post-processing volumes with HDRP5m 13s
-
Film looks with post-processing5m 39s
-
Eye adaptation with exposure6m 1s
-
Using Terrain Toolbox5m 55s
-
Paint materials with Terrain Toolbox5m 25s
-
Working with LODs5m 1s
-
Add LOD trees to a terrain5m 52s
-
Layered lit shaders4m 36s
-
-
-
-