Docs

Guides

Debug view

Use the Relief POM debug view to see what the relief is doing at each pixel, without the lighting.

The debug view shows what the relief is doing at each pixel, without the lighting in the way.

  1. Tick DebugView on a material instance (a child instance made for debugging keeps your preset clean). It is a static switch: the instance compiles one extra shader permutation, and it cannot be switched on a Dynamic Material Instance at run time. With DebugView off (the default) the debug code is compiled out and costs nothing.
  2. Pick the mode in DebugMode. It is an ordinary value: change it in the editor or at run time.
  3. The base colour turns black and the mask is drawn in Emissive, divided by the view's exposure, so 0..1 reads as black..white at any exposure.

What to use it for:

  • Mode 1, the distance fade. The surface turns from green to red between FadeStart_m and FadeEnd_m (times MPC_ReliefPOM.FadeScale). Set the two distances so the red starts where the relief no longer reads at your camera, or change FadeScale to move the fade on every surface at once.
  • Mode 3, the steep sides. White marks where FlankShading gives a side its own normal and side texture: use it to see whether a band or smear on a stone's side comes from there.
  • Mode 5, painted depth and layers. On the master, black shows where vertex paint flattens the relief (check your painting or baked colours); on the landscape, the colours show the paint-layer weights where layers meet.
DebugMode 0 to 5 (left to right) on the AngularRocks slab (top), the L_Demo landscape (middle) and the CrackedMud decal (bottom). The slab has no vertex colours, so its mode 5 is white.