Course contentsShow
← Unreal Engine Game Development
Lesson 518 of 8807. Visual Fidelity and RenderingFree lesson

Crafting Realistic Subsurface Scattering Effects

Configure subsurface scattering profiles to simulate light transmission through organic materials like skin, leaves, and wax for photorealistic results.

In this lesson, you will learn how to configure Subsurface Scattering (SSS) profiles to accurately simulate how light penetrates and scatters within organic materials like skin, leaves, and wax.

Understanding Subsurface Scattering

While standard shading models calculate light bouncing off a surface, Subsurface Scattering accounts for light entering a translucent object, scattering internally, and exiting at a different point. Without SSS, organic materials look like plastic; with it, they gain that characteristic "soft" glow seen in human ears or backlit foliage.

In Unreal Engine, the primary method for achieving this is the Subsurface or Subsurface Profile shading model. The key is the Subsurface Color and the Subsurface Profile asset.

Configuring Your Material

To enable this, set your Material’s Shading Model to Subsurface. This exposes the Subsurface Color input, which acts as a filter for the light passing through the object.

For skin specifically, you should use the Subsurface Profile shading model. This allows you to assign a Subsurface Profile asset, which acts as a specialized data container for internal scattering logic. Within the Profile asset, focus on these parameters:

  • Scattering Mean Free Path: This controls how far light travels inside the object before being absorbed. A higher value leads to a more translucent appearance.
  • Surface Albedo: This defines the color of the light after the initial bounce, critical for getting those realistic red/pink hues in skin.
// Conceptual logic for SSS
// Light entering is tinted by Subsurface Color
float3 LightIn = LightSource * SubsurfaceColor;

// Internal scattering reduces intensity based on depth
float3 Scatter = CalculateInternalBounce(LightIn, MeanFreePath);

Tips for Photorealism

  1. Avoid Pure White: In nature, almost nothing is purely white. Use desaturated, fleshy tones for skin to prevent the "plastic" look.
  2. Backlighting: Test your assets with a strong light source behind the mesh. If the object doesn't show a soft glow on the edges (the "rim" effect), your Mean Free Path is likely too low.
  3. Scale Matters: SSS is scale-dependent. Ensure your meshes are modeled to real-world dimensions, otherwise, the scattering math will behave unpredictably.

Key Takeaway: Subsurface Scattering is achieved by shifting from standard shading to the Subsurface Profile model, using asset-based profiles to simulate the depth and color shift of light as it travels through translucent organic volumes.