Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/FMergeRenderContext
Description
Performs a generic blend assuming GetBlendRenderTargetWrite() is the RT that contains the layer to blend and GetBlendRenderTargetRead() the one that contains the result of the merge up until this layer. It will cycle the RTs such as after this call, GetBlendRenderTargetWrite() will contain the merge result
| Name | GenericBlendLayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Public/LandscapeEditLayerMergeRenderContext.h |
| Include Path | #include "LandscapeEditLayerMergeRenderContext.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEditLayerMergeRenderContext.cpp |
void GenericBlendLayer
(
const FBlendParams & InBlendParams,
FRenderParams & RenderParams,
UE::Landscape::FRDGBuilderRecorder & RDGBuilderRecorder
)
Parameters
| Name | Remarks |
|---|---|
| InBlendParams | defines how heightmaps/weightmaps should be blended. In the case of weightmaps, there must be as may entries in WeightmapBlendParams as there are layers in the target layers group |
| RDGBuilderRecorder | recorder to append operations to a single FRDGBuilder, if the the recorder in "recording" mode. In "immediate" mode, a render command will be enqueued immediately |