Module |
|
Header |
/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h |
Include |
#include "LandscapeProxy.h" |
Source |
/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp |
bool LandscapeImportHeightmapFromRenderTarget
(
UTextureRenderTarget2D * InRenderTarget,
bool InImportHeightFromRGChannel
)
Overwrites a landscape heightmap with render target data
Parameter |
Description |
---|---|
InRenderTarget |
Valid render target with a format of RTF_RGBA16f, RTF_RGBA32f or RTF_RGBA8 |
InImportHeightFromRGChannel |
Only relevant when using format RTF_RGBA16f or RTF_RGBA32f, and will tell us if we should import the height data from the R channel only of the Render target or from R & G. Note that using RTF_RGBA16f with InImportHeightFromRGChannel == false, could have precision loss Only works in the editor |