How to do it...

The first step we'll take in this recipe is going to be very similar to others we've taken before – and that means creating a material that we'll be applying different techniques to. Let's not dwell on this for long and get it out of the way quickly:

  1. Create a new material and give it an indicative name something like M_ Walls_ Parallax if you are going to test it on a wall!
  2. Apply it to whichever model you want, or on Material Element 1 of the room walls if you've opened the same scene I'll be using.

With that done, let's open the material editor for our new asset and start populating its graph with nodes that will bring our parallax effect to life. The first node we'll need to create is the parallax occlusion mapping one, ...

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.