Module |
|
Header |
/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h |
Include |
#include "LandscapeProxy.h" |
Source |
/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp |
bool LandscapeExportHeightmapToRenderTarget
(
UTextureRenderTarget2D * InRenderTarget,
bool InExportHeightIntoRGChannel,
bool InExportLandscapeProxies
)
Output a landscape heightmap to a render target
that using RTF_RGBA16f with InExportHeightIntoRGChannel == false, could have precision loss.
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) |