Plumbline

Plumbline Relief: User Guide

Fast parallax occlusion mapping (POM) for Unreal Engine 5.6, 5.7 and 5.8, in one material function, on meshes and on Landscapes. Content only: no C++, no plugin, nothing to compile. Free on Fab.

Which version is this?

This guide describes version 1.2.0. Version 1.2.0 was sent to Fab on 28 November 2026 and is in review. Until Fab approves it, the download on Fab is version 1.1: everything below marked "1.2" is not in it yet, and the rest works the same in 1.1.

Flat cobblestones on the left, the same floor with Plumbline Relief on the right

New in 1.2

A clean-up release. Existing materials keep working: every new input has a default that changes nothing.

New options

The same slab pad twice: on the left the relief everywhere, on the right the relief fading out where the painted vertex colour goes to zero
HeightMask: the same pad, the same view. Left, the switch is off. Right, the switch is on and the vertex colour red is painted from 1 (left side of the pad) to 0 (right side). Nothing else changes.
A large cobble ground seen from eye height, twice: GrazingFade 0 and GrazingFade 0.3
GrazingFade: the same 40 m ground seen from 1.7 m. Top, GrazingFade 0 (off). Bottom, 0.3: the relief fades out between about 73 and 81 degrees from the vertical, towards the horizon. Nothing else changes.

Six fixes

  1. Sharper steep edges. After the march finds the surface, the last step is searched again in quarter steps (contact refinement). The wavy, serrated top edges of steep relief (slabs seen from afar) are gone.
  2. Sharper relief at grazing angles. The march reads the height at an anisotropic mip, like the hardware does for the colour. Far away and in grazing views, the relief stays as sharp as the colour instead of turning soft. Checked in motion on the Landscape demo: no extra shimmering.
  3. Large Landscapes. The march now runs around 0 instead of around the raw UV. On a big Landscape the UV reaches thousands, where a march step is only a few float steps: the relief turned grainy far from the Landscape corner.
  4. Triplanar dither + texture bombing. With both options on, the second bombing candidate used the wrong projection axis inside the triplanar band (patches of the wrong pattern on rocks).
  5. Ray below the floor. The ray height can no longer end a hair below the floor (pixel depth offset and shadow start).
  6. Normal map where the relief is off. Where the relief is switched off (HeightMask, GrazingFade, ray tracing, beyond FadeEnd), the normal map gets its full strength back, so a flat border matches the flat surface next to it.

Cost: 1.2 costs a little more than 1.1, +0.016 ms instead of +0.011 ms for the default setup on meshes (see Cost).

Install

  1. Download the project for your engine version from Fab and open PlumblineRelief.uproject, or add the pack to an existing project from the Fab plugin or the Epic Games Launcher.
  2. The overview map opens by default: Content/PlumblineRelief/Maps/L_Relief_Overview. The Landscape demo is Content/PlumblineRelief/Maps/L_Relief_Landscape.
  3. To use the material in your own project, migrate Content/PlumblineRelief/Materials and the textures you need (for a Landscape, also Content/PlumblineRelief/Landscape): right click the folder > Asset Actions > Migrate.

What is in the pack

AssetWhat it does
Materials/Functions/MF_ReliefThe parallax march, in one Custom node. Outputs: UV (offset UV), PDO (pixel depth offset, cm), Shadow (self shadow, 1 = lit), DDX / DDY (UV gradients), ReliefNormal and Frame (for MF_Relief_Normal)
Materials/Functions/MF_Relief_NormalFinal world space normal: relief normal, normal map detail, and the "shadow by normal"
Materials/M_ReliefReady master material. Every option is a static switch: what you leave off costs nothing
Materials/M_Flat_ReferenceThe same surface without relief, for before / after comparisons
Materials/M_Relief_LandscapeLandscape master (1.1): 3 painted layers, height blend, relief of every layer in one march. Static switch Relief off = the same material without relief
Materials/Instances/MI_*9 mesh examples: flat, relief, relief + shadow, triplanar, texture bombing, on two texture sets. 3 Landscape instances: MI_Landscape_Relief, MI_Landscape_Relief_Shadow, MI_Landscape_Flat
Textures/T_Relief_Cobble_*, T_Relief_Slabs_*, T_Relief_Gravel_*Height (_H, 16 bit), normal (_N, DirectX), base colour (_BC). 1024 px, generated procedurally by script
Textures/T_Relief_Landscape_HThe Cobble, Slabs and Gravel heights packed in R, G, B (A free), 8 bit, uncompressed. Used by the Landscape layers mode
Landscape/LayerInfos/*_LayerInfoLayer info assets of the 3 demo layers (Cobble, Slabs, Gravel)
Maps/L_Relief_LandscapeLandscape demo map: a 126 m Landscape with a cobble path, a slab plaza and gravel, and a hill (slopes up to about 28 degrees). Cameras: Cam_LandPath, Cam_LandPlaza, Cam_LandWide, Cam_LandSlope, Cam_LandBench (the cost measurement view)
Maps/L_Relief_OverviewOverview map, engine shapes only. The cameras in the Cameras folder frame each feature: Cam_CloseCobble, Cam_Close (close ups), Cam_Triplanar, Cam_Bombing (top view), Cam_Overview, Cam_Bench (the cost measurement view). Pilot one (right click > Pilot) to look through it

Quick start: make your own instance

  1. Right click M_Relief > Create Material Instance.
  2. Set BaseColor, Normal and HeightMap (red channel, white = high, sRGB off, Grayscale compression). A 16 bit height source is recommended (the example height maps are 16 bit).
  3. Set Tiling (how many times the texture repeats over the UV 0..1) and TileSizeCm (the size of one tile in the world, in cm). Height is the relief depth in UV units: 0.05 with 1 m tiles means 5 cm deep.
  4. Turn SelfShadow on if the sun is low or the relief is deep.

To use the function in your own material: set the material to Tangent Space Normal = off, call MF_Relief, sample every texture at its UV output with MipValueMode = Derivative and the DDX / DDY outputs (this avoids mip seams), and feed MF_Relief_Normal into the Normal pin. M_Relief is the reference wiring.

Landscape (since 1.1)

The cobble path of the Landscape demo: flat on the left, with Plumbline Relief on the right

Quick start. Assign MI_Landscape_Relief_Shadow (or M_Relief_Landscape) to your Landscape, add the layer infos of Landscape/LayerInfos in the Paint tab, and paint Cobble, Slabs and Gravel. Open Maps/L_Relief_Landscape to see it set up.

With your own layers, in a copy of M_Relief_Landscape:

  1. Pack the height maps of up to 4 layers in the R, G, B, A channels of one texture (any image editor can do it; white = high). Import it with sRGB off. VectorDisplacementmap (uncompressed) keeps the heights exact; BC7 is 4 times smaller, with small artefacts in the relief normals. Set it as LayerHeights.
  2. Rename the layers in the 3 Landscape Layer Sample nodes and in the 2 Landscape Layer Blend nodes (colour and normal), in the same order as the channels. Set the _BaseColor and _Normal texture of each layer.
  3. Set LayerHeight_<layer>: the height of each layer, 0 to 1 of the full Height. Gravel is 0.6 in the demo, so the cobbles and slabs stand out of it.
  4. Set TileSizeCm (size of one texture tile in the world) and LandscapeQuadCm (the X scale of your Landscape, 100 by default: one quad = 1 m).

How it works. The UV comes from Landscape Layer Coords, which follows the Landscape tangent frame, so the relief stays right on slopes and on a rotated Landscape. Each step of the march reads the 4 packed heights once and blends them with the painted weights, using the same formula as Landscape Layer Blend in height blend. The colour and normal blend you see therefore matches the relief: where the cobbles rise out of the gravel, the march sees them rise too. The final weights at the hit point are also an output (LayerWeights), if you prefer to blend your layers yourself.

In your own Landscape material: call MF_Relief with Layers on, UV = Landscape Layer Coords x (LandscapeQuadCm / TileSizeCm), LayerWeights = the Landscape Layer Sample of each layer appended in R, G, B, A order, and LayerHeightScale. Sample every texture at the UV output with DDX / DDY, feed the same heights to the Height pins of your Landscape Layer Blend, and feed MF_Relief_Normal into the Normal pin (Tangent Space Normal off). M_Relief_Landscape is the reference wiring.

Parameters of M_Relief_Landscape, on top of the 02 Relief and 03 Relief Shadow groups of M_Relief (with Height 0.04, FadeStart 2000 cm and FadeEnd 5000 cm by default):

ParameterDefaultMeaning
Relief (switch)onOff = the same material with no march at all (flat reference)
LayerHeightsT_Relief_Landscape_HPacked layer heights, R G B A
LayerHeight_Cobble / _Slabs / _Gravel1 / 1 / 0.6Height of each layer, 0 to 1 of Height
LandscapeQuadCm100Size of one Landscape quad in cm (the Landscape X scale)
TileSizeCm100Size of one texture tile in cm
<Layer>_BaseColor, <Layer>_Normaldemo setsTextures of each layer

Landscape limits.

Parameters of M_Relief

01 Surface

ParameterDefaultMeaning
BaseColor, NormalCobble setSurface textures, sampled at the offset UV
Tiling1UV multiplier
Roughness0.85Constant roughness
DetailNormal0.5Share of the normal map added on top of the relief normal (0 = relief only)

02 Relief

ParameterDefaultMeaning
HeightMapCobbleHeight map, red channel. Keep the Wrap address mode (the default)
Height0.05Relief depth in UV units
TileSizeCm100Size of one tile in cm (used for pixel depth offset and the triplanar scale)
ReliefNormals (switch)onNormal rebuilt from the height at the hit point (4 extra reads). Off = normal map only
Noise (switch)onDithered start of the march. Removes step bands, smoothed by TSR
AnimatedNoise11 = noise changes over 8 frames (for TSR), 0 = fixed (for FXAA, or no anti-aliasing)
AutoSteps (switch)onStep count from the real on-screen offset
PixelsPerStep2AutoSteps: screen pixels per step. 1 = smoother steep sides, more cost
MinSteps / MaxSteps4 / 32Step range (MaxSteps is the cap with AutoSteps)
Refine2Secant refinement iterations (0 to 3)
FadeStart / FadeEnd1500 / 4000 cmThe relief fades out between these distances; beyond FadeEnd the march is skipped
MipBias0.5Mip bias of the march (higher = cheaper, blurrier)
NormalStrength1Relief normals: 1 = true slope
NormalMipBias0Relief normals: mip offset (negative = sharper)
HeightMaskFromVertexColor (switch)off1.2: vertex colour red multiplies Height (0 = no relief). Off = no cost
GrazingFade01.2: fades the relief out at grazing angles. The relief starts to fade when the cosine of the view angle drops below this value and is gone at half of it: 0.15 fades from 81 to 86 degrees, 0.3 from 73 to 81 degrees. 0 = off

03 Relief Shadow

ParameterDefaultMeaning
SelfShadow (switch)offSelf shadow of the relief towards the sun
HardShadow (switch)onSharp shadow with a penumbra that grows with the distance to the obstacle. Off = soft shadow
ShadowByNormal (switch)onInside the relief shadow, the sun is removed from the normal (N.L to 0): sky light and Lumen bounce stay. Off = the shadow multiplies the base colour (darker, can turn black)
ShadowStrength11 = full shadow
ShadowSteps6Shadow reads
ShadowSoftness6Higher = darker, sharper
UseSkyAtmosphereSun (switch)onLight direction from the Sky Atmosphere sun. Off = SunDirection vector (world, towards the light)
SunDirection(0.5, 0.3, 0.81)Used when UseSkyAtmosphereSun is off

04 Relief Triplanar

ParameterDefaultMeaning
Triplanar (switch)offWorld projection on the dominant axis of the vertex normal. No UV needed
TriplanarBand (switch)offHides the seam: 2 marches inside a band, the highest relief wins
TriplanarDither (switch)offCheaper seam: axis picked by noise inside the band (1 march), TSR smooths it
BandWidth0.15Width of the band (0 to 0.5)

05 Relief Bombing

ParameterDefaultMeaning
TextureBombing (switch)offRandom pattern offset per zone, breaks visible tiling
BombingDither (switch)offDithered transition (1 march) instead of 2 marches in the transition
BombingCellSize3Zone size, in tiles
BombingBlend0.1Transition width

Cost

Measured on an RTX 4080, Unreal Engine 5.8, Epic scalability, TSR, Lumen, virtual shadow maps, at 2560 x 1440. View: the Cam_Bench camera of the overview map, the six 4 m pads all switched to the same material, relief on about 55 % of the screen. Each setup is measured for 6 s with the CSV profiler, in two alternating rounds (A B ... B A); the value is the median per frame of the base pass, minus the same view with the flat reference material. With no pixel depth offset (the default), depth, velocity and shadow passes see the flat surface, so the cost sits in the base pass. The spread between the two rounds was 0.000 ms on the base pass.

Version 1.2 was measured on 28 November 2026, and version 1.1 again the same day in the same conditions, for comparison. 1.2 costs a little more: the sharper mip reads finer texture levels and the contact refinement adds up to 3 reads on the pixels that hit a steep side.

Setup, 2560 x 1440, base pass1.21.1 (same day)
Flat reference (same textures, no relief)0.086 ms (reference)0.084 ms (reference)
Relief, default (relief normals, noise, auto steps, cap 32)+0.016 ms+0.011 ms
Relief + self shadow (hard, by normal)+0.026 ms+0.019 ms
Relief + self shadow, triplanar+0.029 ms+0.020 ms
Relief + texture bombing (slab texture)+0.025 ms+0.016 ms

Landscape. Same GPU, engine and settings. View: Cam_LandBench, the ground fills the whole screen (4 m above the ground, 45 degrees down), with the 3 painted layers in view. The reference is the same Landscape material with the Relief switch off (same textures, same Landscape Layer Blend, no march).

Setup (full screen Landscape, 3 layers), 2560 x 1440, base pass1.21.1 (same day)
Flat reference (Relief off)0.117 ms (reference)0.118 ms (reference)
Relief, default (relief normals, noise, auto steps, cap 32)+0.049 ms+0.033 ms
Relief + self shadow (hard, by normal)+0.070 ms+0.049 ms

The depth prepass and the shadow passes did not move beyond their noise. On the Landscape each march read blends 4 layers, so the contact refinement costs more there than on meshes.

What the numbers do not say: the cost grows with the share of the screen covered by relief, with the step count (grazing views, deep relief, PixelsPerStep 1), and on slower GPUs. Not measured here: lower-end GPUs, consoles, 1920 x 1080 for version 1.2. The values above are for these views only; measure your own scenes with stat gpu or the CSV profiler.

Honest limits

Tested

EngineBuiltOpened in game, all shaders compiledErrors / material warnings
5.6yes (assets saved by 5.6)yes, overview and Landscape maps, every example in view0 / 0
5.7yes (assets saved by 5.7)yes0 / 0
5.8yes (assets saved by 5.8)yes0 / 0
5.6 project opened in 5.7(5.6 assets)yes0 / 0
5.6 project opened in 5.8(5.6 assets)yes0 / 0

Version 1.2 (28 November 2026): every row above was run again on both maps, built from scratch. Also checked for 1.2: a project with hardware ray tracing, Lumen hit lighting and the path tracer on (5.8): the materials compile and the path tracer shows the flat surface, as intended; a camera moving over the Landscape demo, 150 frames in a row, 1.1 against 1.2: no extra shimmering, 1.2 is sharper.

Windows 11, DX12, Shader Model 6. Not tested: macOS, Linux, mobile, forward shading, VR.

Techniques

Public techniques only: parallax occlusion mapping with linear search and secant refinement (Tatarchuk 2006; Szirmay-Kalos and Umenhoffer 2008), interleaved gradient noise (Jimenez 2014), partial derivative normal blending (Barre-Brisebois and Hill 2012), texture bombing (Glanville 2004; Quilez). All textures are generated by script.

New to POM? Read parallax occlusion mapping in Unreal Engine 5, the engine's own way first.

Support

Something does not work? Write to plumbline.tools@outlook.com with your Unreal version, what you did and what happened (a screenshot helps). Answers within 2 working days. Bugs are fixed for free in updates, and each new Unreal version is supported within 30 days.

Changelog

1.2.0 (sent to Fab on 28 November 2026, in review): sharper steep edges and grazing views, no grain on large Landscapes, fix for triplanar dither + texture bombing. New options: HeightMaskFromVertexColor and GrazingFade. Flat in ray traced passes. Existing settings unchanged.

1.1.0 (November 2026): Landscape support (M_Relief_Landscape, 3 painted layers in one march), Landscape demo map, gravel texture set.

1.0.0 (November 2026): first release, Unreal Engine 5.6, 5.7 and 5.8.