How to do it...

The very first step we'll need to take in this chapter is building the lighting in our level. As we stated previously, this is a crucial step in our journey before we attempt to create the material we'll be applying, as the new node we'll use this time relies on the existence of shadowmaps. You won't have to worry about this circumstance if you open the level we referred to in the previous section, but take that into account if you use one of your own. 

With that out of the way, let's start creating our new material:

  1. Create a new material and give it an appropriate name, something indicative of what we'll be creating—I've gone with M_ DirtyWalls as that's going to be the use of our material. Double-click on the new asset ...

Get Unreal Engine 4 Shaders and Effects Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.