How to do it...

The first thing we'll do in this recipe will be creating the material we'll be working on, as well as its initial setup, so that it makes use of the Tessellation feature: 

  1. Create a new material and give it a name. I've gone with M_ BrickWall_ Displacement this time.
  2. Select the main material node and look at its Details panel as usual, there are a few things we'll need to tweak in here.
  3. The first setting we need to change is called D3D11 Tessellation Mode, and it can be found under the Tessellation tab, a bit further down the Details panel (close to the bottom). Change the default value to PN Triangles.
  4. There are some other settings in that same category that you can play with namely Crack Free DisplacementAdaptative Tessellation ...

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.