ALandscapeProxy::LandscapeExportHeightmapToRenderTarget

Output a landscape heightmap to a render target

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h

Include

#include "LandscapeProxy.h"

Source

/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp

Syntax

bool LandscapeExportHeightmapToRenderTarget
(
    UTextureRenderTarget2D * InRenderTarget,
    bool InExportHeightIntoRGChannel,
    bool InExportLandscapeProxies
)

Remarks

Output a landscape heightmap to a render target

that using RTF_RGBA16f with InExportHeightIntoRGChannel == false, could have precision loss.

Parameters

Parameter

Description

InRenderTarget

Valid render target with a format of RTF_RGBA16f, RTF_RGBA32f or RTF_RGBA8

InExportHeightIntoRGChannel

Tell us if we should export the height that is internally stored as R & G (for 16 bits) to a single R channel of the render target (the format need to be RTF_RGBA16f or RTF_RGBA32f)

InExportLandscapeProxies

Option to also export components of all proxies of Landscape actor (if LandscapeProxy is the Landscape Actor)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss