Docs

Guides

Decals

Put relief, self-shadow and a height-shaped broken edge on decals with M_ReliefPOM_Decal.

  1. Make an instance of M_ReliefPOM_Decal (or use MI_ReliefPOM_Decal_CrackedMud / _AngularRocks) and set the four textures and HeightScale_cm.
  2. Place a Decal Actor and set its Decal Material to the instance. A new Decal Actor projects straight down; rotate the actor to project onto a wall. Decal Size X is the projection depth: the box must reach the surface.
  3. Keep the decal box square: Decal Size Y = Z, and scale the actor uniformly. The texture is mapped with one uniform DecalTiling, so a long thin box stretches it. For a long strip, place several square decals (as along the wall foot in L_Demo).
Parameter (08 Decal) Default What it does
EdgeWidth 0.18 Width of the broken edge as a fraction of the decal; the height map decides which bumps survive.
EdgeSoftness 0.12 Softness of the edge cut.
AngleFade 0.55 Receivers tilted away from the projection fade out (cosine threshold).
Opacity 1 Overall opacity.
Parameter (09 Debug) Default What it does
DebugView (switch) off As in Master material parameters.
DebugMode 0 As in Master material parameters; mode 5 shows the decal's opacity / edge mask (white = opaque) over the whole decal box.

DecalTiling (02 Mapping, default 1) sets the texture repeats across the box. The other groups match Master material parameters. The decal uses Unreal's standard deferred decal path (colour, normal and roughness); the surface underneath must have Receives Decals on, which is the default.

CrackedMud relief decal on the courtyard paving, hidden and shown (same camera); inset: AngularRocks decal on soil.