How to do it...

At the time of writing, Unreal offers several possibilities in terms of SSS rendering  two main ones with the Subsurface Profile and Subsurface options, and some other more specific ones, such as the pre-integrated skin method. In this section, we'll be exploring the first implementation, but we'll talk about the others in the How it works section. Let's start by creating the material that we'll use in this recipe:

  1. Create a new material, and, assuming you've opened the previous level we mentioned in the Getting ready section, assign it to the SM_Candle static mesh in the scene that we have opened. I've named mine M_CandleWax_SSS. Double-click on it once created to open the Material Editor.

If you are using your own assets, ...

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.