Blending Landscape layers

HellFireHE
Fri, 06 Jun 2025 20:27:42 +0000
World Creation

I am developing my landscape brush (ALandscapeBlueprintBrushBase).

::RenderLayer_Implementation() is called only once per draw only for heightmap
ARoundFlatBrush::RenderLayer_Implementation InParameters.LayerType=0 InParameters.WeightmapLayerName=None

ELandscapeToolTargetType definition shows there is also Weightmap, but I don’t know how to make UE5 to call RenderLayer_Implementation() also for Weightmap.

Is there a way to handle blending between layers?
Right now as a workaround I am blending layers “by hand” by reading renderbuffer, modifying it and writing back to rendertarget.
But it is very inconvenient with more layers.

Generating render target with working alpha channel, or with weightmap that engine would blend with other layers would be better.

I would like to left part of rendertarget as “not touched” instead of copying whole heightmap from lower layers to higher.

2 posts - 1 participant