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.
New in 1.2
A clean-up release. Existing materials keep working: every new input has a default that changes nothing.
New options
HeightMaskFromVertexColor(switch, off). Vertex colour red multiplies the height: paint 0 to stop the relief at mesh borders, UV island borders or where another object touches the surface.MF_Reliefhas a newHeightMaskinput (default 1) for your own masks.GrazingFade(0 = off). Fades the relief out when the view gets very flat, at the horizon of a large ground.- Ray tracing. In ray traced passes (Lumen hit lighting reflections, path tracer) the surface is drawn flat: those passes have no screen derivatives, so the march would run at full cost with the wrong view.
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
- 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.
- 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.
- 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.
- 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).
- Ray below the floor. The ray height can no longer end a hair below the floor (pixel depth offset and shadow start).
- 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
- 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. - The overview map opens by default:
Content/PlumblineRelief/Maps/L_Relief_Overview. The Landscape demo isContent/PlumblineRelief/Maps/L_Relief_Landscape. - To use the material in your own project, migrate
Content/PlumblineRelief/Materialsand the textures you need (for a Landscape, alsoContent/PlumblineRelief/Landscape): right click the folder > Asset Actions > Migrate.
What is in the pack
| Asset | What it does |
|---|---|
Materials/Functions/MF_Relief | The 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_Normal | Final world space normal: relief normal, normal map detail, and the "shadow by normal" |
Materials/M_Relief | Ready master material. Every option is a static switch: what you leave off costs nothing |
Materials/M_Flat_Reference | The same surface without relief, for before / after comparisons |
Materials/M_Relief_Landscape | Landscape 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_H | The Cobble, Slabs and Gravel heights packed in R, G, B (A free), 8 bit, uncompressed. Used by the Landscape layers mode |
Landscape/LayerInfos/*_LayerInfo | Layer info assets of the 3 demo layers (Cobble, Slabs, Gravel) |
Maps/L_Relief_Landscape | Landscape 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_Overview | Overview 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
- Right click
M_Relief> Create Material Instance. - Set
BaseColor,NormalandHeightMap(red channel, white = high, sRGB off, Grayscale compression). A 16 bit height source is recommended (the example height maps are 16 bit). - Set
Tiling(how many times the texture repeats over the UV 0..1) andTileSizeCm(the size of one tile in the world, in cm).Heightis the relief depth in UV units: 0.05 with 1 m tiles means 5 cm deep. - Turn
SelfShadowon 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)
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:
- 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;BC7is 4 times smaller, with small artefacts in the relief normals. Set it asLayerHeights. - Rename the layers in the 3
Landscape Layer Samplenodes and in the 2Landscape Layer Blendnodes (colour and normal), in the same order as the channels. Set the_BaseColorand_Normaltexture of each layer. - Set
LayerHeight_<layer>: the height of each layer, 0 to 1 of the fullHeight. Gravel is 0.6 in the demo, so the cobbles and slabs stand out of it. - Set
TileSizeCm(size of one texture tile in the world) andLandscapeQuadCm(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):
| Parameter | Default | Meaning |
|---|---|---|
| Relief (switch) | on | Off = the same material with no march at all (flat reference) |
| LayerHeights | T_Relief_Landscape_H | Packed layer heights, R G B A |
| LayerHeight_Cobble / _Slabs / _Gravel | 1 / 1 / 0.6 | Height of each layer, 0 to 1 of Height |
| LandscapeQuadCm | 100 | Size of one Landscape quad in cm (the Landscape X scale) |
| TileSizeCm | 100 | Size of one texture tile in cm |
<Layer>_BaseColor, <Layer>_Normal | demo sets | Textures of each layer |
Landscape limits.
- All layers share one tiling (one packed texture, one UV). Up to 4 layers take part in the relief; a 5th layer can be painted but stays flat.
- The painted weights are read once per pixel, not per step. Right on a sharp paint edge, the relief of one layer can overhang the other by up to the parallax offset.
- On very steep slopes (cliffs) the Landscape UV stretches, like any top down projection, and the relief stretches with
it. The triplanar mode of
MF_Reliefis not wired in the Landscape master. - Runtime Virtual Texture: not supported. A virtual texture stores a result seen from above, while parallax depends on the view direction. Keep the relief material outside the virtual texture, or write only the flat colours to it.
- Not tested: Nanite Landscape, World Partition streaming proxies, Landscape grass, more than 4 relief layers.
Parameters of M_Relief
01 Surface
| Parameter | Default | Meaning |
|---|---|---|
| BaseColor, Normal | Cobble set | Surface textures, sampled at the offset UV |
| Tiling | 1 | UV multiplier |
| Roughness | 0.85 | Constant roughness |
| DetailNormal | 0.5 | Share of the normal map added on top of the relief normal (0 = relief only) |
02 Relief
| Parameter | Default | Meaning |
|---|---|---|
| HeightMap | Cobble | Height map, red channel. Keep the Wrap address mode (the default) |
| Height | 0.05 | Relief depth in UV units |
| TileSizeCm | 100 | Size of one tile in cm (used for pixel depth offset and the triplanar scale) |
| ReliefNormals (switch) | on | Normal rebuilt from the height at the hit point (4 extra reads). Off = normal map only |
| Noise (switch) | on | Dithered start of the march. Removes step bands, smoothed by TSR |
| AnimatedNoise | 1 | 1 = noise changes over 8 frames (for TSR), 0 = fixed (for FXAA, or no anti-aliasing) |
| AutoSteps (switch) | on | Step count from the real on-screen offset |
| PixelsPerStep | 2 | AutoSteps: screen pixels per step. 1 = smoother steep sides, more cost |
| MinSteps / MaxSteps | 4 / 32 | Step range (MaxSteps is the cap with AutoSteps) |
| Refine | 2 | Secant refinement iterations (0 to 3) |
| FadeStart / FadeEnd | 1500 / 4000 cm | The relief fades out between these distances; beyond FadeEnd the march is skipped |
| MipBias | 0.5 | Mip bias of the march (higher = cheaper, blurrier) |
| NormalStrength | 1 | Relief normals: 1 = true slope |
| NormalMipBias | 0 | Relief normals: mip offset (negative = sharper) |
| HeightMaskFromVertexColor (switch) | off | 1.2: vertex colour red multiplies Height (0 = no relief). Off = no cost |
| GrazingFade | 0 | 1.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
| Parameter | Default | Meaning |
|---|---|---|
| SelfShadow (switch) | off | Self shadow of the relief towards the sun |
| HardShadow (switch) | on | Sharp shadow with a penumbra that grows with the distance to the obstacle. Off = soft shadow |
| ShadowByNormal (switch) | on | Inside 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) |
| ShadowStrength | 1 | 1 = full shadow |
| ShadowSteps | 6 | Shadow reads |
| ShadowSoftness | 6 | Higher = darker, sharper |
| UseSkyAtmosphereSun (switch) | on | Light 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
| Parameter | Default | Meaning |
|---|---|---|
| Triplanar (switch) | off | World projection on the dominant axis of the vertex normal. No UV needed |
| TriplanarBand (switch) | off | Hides the seam: 2 marches inside a band, the highest relief wins |
| TriplanarDither (switch) | off | Cheaper seam: axis picked by noise inside the band (1 march), TSR smooths it |
| BandWidth | 0.15 | Width of the band (0 to 0.5) |
05 Relief Bombing
| Parameter | Default | Meaning |
|---|---|---|
| TextureBombing (switch) | off | Random pattern offset per zone, breaks visible tiling |
| BombingDither (switch) | off | Dithered transition (1 march) instead of 2 marches in the transition |
| BombingCellSize | 3 | Zone size, in tiles |
| BombingBlend | 0.1 | Transition 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 pass | 1.2 | 1.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 pass | 1.2 | 1.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
- The silhouette stays flat. POM moves the texture inside the surface, not the geometry. Edges, the horizon line and contact with other meshes stay flat. Use real geometry (or Nanite displacement) where the silhouette matters.
- No pixel depth offset by default.
MF_Reliefoutputs aPDOvalue, butM_Reliefdoes not wire it: shadow passes do not apply pixel depth offset, so a surface pushed down by PDO ends up under its own shadow (dark ground with virtual shadow maps), and PDO also makes Nanite use its slower programmable raster path. Wire it yourself only if you need meshes to intersect the relief and you have checked the shadows. - Height maps in Wrap. Since 1.2 the march runs on the fractional part of the UV: the height map must use the Wrap address mode (the default). Clamp or Mirror would misalign the relief and the colour outside UV 0..1.
- UVs matter. The march follows the UV. Stretched UVs, a texel density that changes across the mesh, or mirrored and rotated UV islands give a wrong depth. Use the triplanar mode on meshes without clean UVs.
- Grazing angles and steep sides. Very flat views need more steps; AutoSteps handles it up to
MaxSteps. Vertical sides of deep relief show the texture stretched along the side (thin vertical streaks).GrazingFade(1.2) hides the relief near the horizon if the compressed relief bothers you there. - The sun only. The self shadow and the "shadow by normal" follow one light direction (the sun). Inside the relief
shadow the normal is bent away from the sun, and point lights and the sky then light that bent normal too: at night
or indoors, a lamp next to a stone "in the sun's shadow" lights it slightly wrong. In a night or indoor scene, turn
ShadowByNormaloff, or setShadowStrengthfrom the sun intensity. - Without a Sky Atmosphere the sun direction node returns nothing and the shadow falls back to straight down:
no relief shadow at all, with no warning. Turn
UseSkyAtmosphereSunoff and setSunDirectionyourself. - Triplanar uses world coordinates. On a moving mesh the texture slides over the surface, and very far from the world origin (several km) the projection loses precision and the texture trembles. Use UV mode on moving meshes.
- Very large UVs. 1.2 removes the grain of the relief on large Landscapes, but the colour textures are still read at the raw UV (that is the hardware). Beyond about 10 000 tiles from the UV origin, sharp edges get small stair steps in the colour too. Tested at UV + 4096 (clean) and UV + 16384 (small steps on the edges).
- The relief shadow is a texture effect. It does not cast onto other meshes and other meshes do not shadow it more than a flat surface.
- Requires a desktop renderer (DX12, Shader Model 6 tested). Mobile and forward shading are not tested.
Tested
| Engine | Built | Opened in game, all shaders compiled | Errors / material warnings |
|---|---|---|---|
| 5.6 | yes (assets saved by 5.6) | yes, overview and Landscape maps, every example in view | 0 / 0 |
| 5.7 | yes (assets saved by 5.7) | yes | 0 / 0 |
| 5.8 | yes (assets saved by 5.8) | yes | 0 / 0 |
| 5.6 project opened in 5.7 | (5.6 assets) | yes | 0 / 0 |
| 5.6 project opened in 5.8 | (5.6 assets) | yes | 0 / 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.