Reference
Master material parameters
Every parameter of M_ReliefPOM_Master by group, with its default, range and what it does.
Every parameter below is an instance parameter. Switches (static) recompile the instance's shaders when changed; all other values update live and can be changed at runtime on a Dynamic Material Instance.
00 Relief POM#
| Parameter | Default | What it does |
|---|---|---|
UseRelief (switch) |
on | Off compiles the relief out completely: the plain material, for an exact cost baseline or a low-end fallback. |
01 Textures#
| Parameter | What it expects |
|---|---|
BaseColor |
Colour texture, sRGB on. |
Normal |
Normal map, Normalmap compression. DirectX convention; for OpenGL set FlipNormalGreen = 1. |
ORM |
R occlusion, G roughness, B metallic, sRGB off. |
Height |
Height map, white = top, sRGB off. Any compression and any channel (HeightChannel). |
02 Mapping#
| Parameter | Default | Range | What it does |
|---|---|---|---|
Tiling |
1 | 0.01-10 | Multiplies UV0. On meshes with UV0 in metres: 1 / texture size in m. |
UVRotation_deg |
0 | -180-180 | Rotates the texture. Parallax and normals stay correct. |
WorldAligned (switch) |
off | On: world-aligned box projection (floors, walls and any mesh), ignoring UVs. On walls the texture runs to the viewer's right with no mirroring; the relief and the normals stay correct. | |
WorldTextureSize_m |
2 | 0.1-20 | Texture size in metres when WorldAligned is on. |
03 Relief#
| Parameter | Default | Range | What it does |
|---|---|---|---|
Enable |
1 | 0-1 | Runtime switch. 0 = relief off (one height read remains). |
HeightScale_cm |
4 | 0-25 | Depth of the relief in world centimetres (the deepest joint or gap). Independent of tiling and mesh scale; multiplied by MPC_ReliefPOM.DepthScale (Global quality and Blueprint control). |
Quality |
1 | 0-3 | 0 Low, 1 Medium, 2 High, 3 Custom (group 07). Table below. |
FadeStart_m |
15 | 0-200 | Full relief closer than this distance. |
FadeEnd_m |
25 | 0-300 | No relief and no trace beyond this distance; the cost drops to the plain material's. |
HeightChannel |
0 | 0-3 | Channel of the height texture: 0 R, 1 G, 2 B, 3 A. |
HeightRangeMin |
0 | 0-1 | Height value treated as the bottom. Raise it if a scan uses only the top part of 0..1. |
HeightRangeMax |
1 | 0-1 | Height value treated as the top. |
InvertHeight |
0 | 0-1 | 1 = the map is a depth map (white = deep). |
Cavity |
0.75 | 0-1 | Darkens joints and gaps from the traced height (base colour and AO), and darkens a steep side more toward its foot, like a contact shadow. 0 = off. |
FlankShading |
1 | 0-1 | Steep sides get the height field's own normal and their own side texture: the colour is read from the stone's top and continued down the side, so the side shows the stone's surface, not one rim texel stretched. Where a side is magnified on screen its colour is also filtered along the view ray only (sharp across it). Surfaces that are not magnified keep their full texture detail. Holds at standing views looking down; low and grazing views: Limits. 0 = off. |
Dither |
1 | 0-1 | 1 = the start of the search and of the self-shadow moves per pixel and per frame, and TSR / TAA average it into clean edges and penumbras. The search dither fades out where a search step spans one screen pixel or less (distant surfaces), so the far field stays sharp. 0 = fixed start, for projects without temporal anti-aliasing (FXAA, MSAA or none). |
DetailShading (switch) |
on | Off compiles FlankShading and Cavity out, with their texture reads: cheaper on Medium and High (Performance). Quality 0 (Low) skips them at run time anyway, and on Low the measured cost with it off was slightly higher, not lower. |
|
UseVertexPaintDepth (switch) |
off | Paint the depth: the mesh's vertex colour scales HeightScale_cm, white = full depth, black = PaintedMinDepth (below). Off compiles it out. |
|
VertexPaintChannel |
0 | 0-3 | Vertex colour channel that scales the depth: 0 R, 1 G, 2 B, 3 A. |
PaintedMinDepth |
0 | 0-1 | Depth where the channel is black, as a fraction of HeightScale_cm (0 = flat, 0.5 = half). |
| Quality | Search steps (fewest-most) | One step per | Refinement steps | Self-shadow steps | Flank shading and cavity |
|---|---|---|---|---|---|
| 0 Low | 3-8 | 4 screen pixels | 1 | none | off |
| 1 Medium (default) | 4-16 | 3 screen pixels | 2 | up to 3 | on |
| 2 High | 8-32 | 1.5 screen pixels | 4 | up to 8 | on |
| 3 Custom | MinSteps-MaxSteps |
StepPixels |
RefineSteps |
up to ShadowSteps |
on |
The search takes one step per StepPixels of the view ray's length on screen, between the fewest and the most steps:
distant or head-on surfaces take few steps, near grazing ones many, so no stone crest is skipped up close and little
is spent far away. The self-shadow takes up to its step count the same way. Where a step spans a pixel or less the search
starts at a fixed point instead of a dithered one, so distant ground keeps its full texture detail.
04 Self-Shadow#
| Parameter | Default | Range | What it does |
|---|---|---|---|
UseSelfShadow (switch) |
on | Height-field shadow toward the sun. Off compiles it out. Quality Low never traces it. | |
ShadowStrength |
0.85 | 0-1 | How dark the self-shadow gets. |
ShadowContrast |
12 | 1-32 | Sharpness of the self-shadow edge: higher = harder edge, lower = wider, softer penumbra. |
AutoSunDirection |
1 | 0-1 | 1 = follow the level's directional light automatically. 0 = use SunDirection. |
SunDirection |
(0.5, 0, 0.866) | World unit vector pointing toward the sun, used when AutoSunDirection = 0. |
05 Look#
| Parameter | Default | Range | What it does |
|---|---|---|---|
BaseColorTint |
white | Multiplies the base colour. | |
Brightness |
1 | 0-4 | Base colour multiplier. |
Saturation |
1 | 0-2 | 0 grey, 1 as scanned, 2 more saturated. |
NormalStrength |
1 | 0-2 | Normal map strength. |
FlipNormalGreen |
0 | 0-1 | 1 = OpenGL normal map (green up). |
RoughnessMin / RoughnessMax |
0 / 1 | 0-1 | Roughness where the ORM green channel is 0 / 1. |
AOStrength |
1 | 0-1 | Strength of the ORM red channel. |
Metallic |
0 | 0-1 | Multiplies the ORM blue channel. |
Specular |
0.5 | 0-1 | 0.5 = standard dielectric. |
06 Anti-Tiling#
| Parameter | Default | Range | What it does |
|---|---|---|---|
UseAntiTiling (switch) |
off | Hex anti-tiling: each cell gets a random rotation and offset, blended by height. Correct under parallax. Costs about 3 traces. | |
CellSize |
1 | 0.2-4 | Cell size in UV units (1 = about one texture tile). |
RotationAmount |
1 | 0-1 | 0 = no random rotation, 1 = full 360 degrees. |
BlendContrast |
4 | 0-16 | How strongly the higher sample wins where cells meet. |
07 Custom Quality (used when Quality = 3)#
| Parameter | Default | Range | What it does |
|---|---|---|---|
MinSteps |
4 | 1-64 | Fewest search steps (distant or head-on surfaces). |
MaxSteps |
16 | 1-64 | Most search steps (near, grazing surfaces). |
RefineSteps |
2 | 0-8 | Bisection refinement steps. |
ShadowSteps |
3 | 0-32 | Most self-shadow steps (0 = none). |
StepPixels |
3 | 0.5-16 | Screen pixels per search step along the view ray: smaller = more steps up close. |
09 Debug#
| Parameter | Default | Range | What it does |
|---|---|---|---|
DebugView (switch) |
off | Debug view: base colour black and the DebugMode mask in Emissive, so the lighting does not hide it. Off compiles it out: no cost. |
|
DebugMode |
0 | 0-5 | What the debug view shows (table below). |
DebugMode |
Shows |
|---|---|
| 0 | Traced relief height (grey). |
| 1 | Relief strength after the distance fade: green = full, red = faded out (FadeStart_m / FadeEnd_m x MPC_ReliefPOM.FadeScale). |
| 2 | Self-shadow, white = lit. |
| 3 | Steep-side mask: where flank shading and the side texture apply. |
| 4 | Cavity occlusion, white = open. |
| 5 | Per material. Master: the vertex-paint depth multiplier (white = full depth; white everywhere when UseVertexPaintDepth is off). Landscape: the paint-layer weights (Layer1 red, Layer2 green, Layer3 blue, Layer4 yellow). Decal: the decal's opacity / edge mask (white = opaque), shown over the whole decal box. |
On the master with UseAntiTiling on, modes 0, 1 and 3 show the anti-tiling trace.