Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


With the introduction of Physically Based Shading (PBS) to CRYENGINE, it is important to adhere to how we configure our materials & textures to get the correct look & feel from every surface in the game.

To assist you during this process we have developed a set of debug views to investigate how your materials & textures are setup.


This CVar has 9 modes that cover the specifics of the PBS render to ensure that you are configuring everything correctly.

An overview of the PBS material setup can be found HERE for reference.

Table of Contents

r_DebugGBuffer = 0

Off, normal view mode.

Image Modified

r_DebugGBuffer = 1


Shows the world space normals of all assets in the scene.

Image Modified

r_DebugGBuffer = 2


This debug view shows how rough or glossy surfaces are. Note how the reflective sphere in the scene is pure white.

White = glossy, Black = rough

Image Modified

r_DebugGBuffer = 3


This represents the Specular color of the material.

Image Modified

titleColored Specular

Only materials using the Standard Lighting Model support colored reflectance. Materials with Transmittance or POM Self-shadowing, as well as Decals, just store monochrome surface reflectance.

r_DebugGBuffer = 4


This shows the albedo of surfaces which was previously known as diffuse map.

Image Modified

r_DebugGBuffer = 5

Lighting Model

Grey - Standard, Yellow - Transmittance, Blue - POM Self shadowing

The Vegetation & HumanSkin shaders have the Transmittance properties active by default.

Image Modified

r_DebugGBuffer = 6


Shows the translucency values set on assets in the scene. (Black = none).

This is controlled through the Transmittance color set in the materials shader params.

Image Modified

r_DebugGBuffer = 7

Sun Self Shadowing

Displays the self-shadowing of material that use Offset Bump mapping or Parallax Occlusion Mapping

Image Modified

r_DebugGBuffer = 8

Subsurface Scattering

Displays in red and yellow, any asset that uses SSS. The brighter the color, the higher the SSS index.

The SSS index can be set in Illum and the HumanSkin shader.

Image Modified

r_DebugGBuffer = 9

Specular Validation

This view helps you understand if your specular color is reasonable range.

  • If your specular color is too low, it will be tinted Blue.
  • If your specular color is too high for an dielectric surface but not yet in the metal range, it will be tinted Orange.
  • Pink reveals colored specular which is not yet in the metal range. This is only valid for oxidized (rusted) metals.

Image Modified

On This Page

Table of Contents