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.
- Tick
DebugViewon 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. WithDebugViewoff (the default) the debug code is compiled out and costs nothing. - Pick the mode in
DebugMode. It is an ordinary value: change it in the editor or at run time. - 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_mandFadeEnd_m(timesMPC_ReliefPOM.FadeScale). Set the two distances so the red starts where the relief no longer reads at your camera, or changeFadeScaleto move the fade on every surface at once. - Mode 3, the steep sides. White marks where
FlankShadinggives 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.
