Navigation
API > API/Plugins > API/Plugins/LandscapePatch > API/Plugins/LandscapePatch/ULandscapeTexturePatch
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| LandscapeTexturePatch.h | |||
virtual UTextureRenderTarget2D * GetHeightAlphaRenderTarget
(
bool bMarkDirty |
Gets the internal height alpha render target, if the height alpha source mode is set to Texture Backed Render Target | LandscapeTexturePatch.h |
|
GetHeightAlphaRenderTarget()
| Name | GetHeightAlphaRenderTarget |
| Type | function |
| Header File | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Public/LandscapeTexturePatch.h |
| Include Path | #include "LandscapeTexturePatch.h" |
| Source | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Private/LandscapeTexturePatch.cpp |
UTextureRenderTarget2D * GetHeightAlphaRenderTarget()
GetHeightAlphaRenderTarget(bool)
Description
Gets the internal height alpha render target, if the height alpha source mode is set to Texture Backed Render Target
Things that should be set up if using the internal render target:
- An appropriate texture size should have been set with SetResolution. If the patch extent has already been set, you can base your resolution on the extent and the resolution of the landscape by using GetInitResolutionFromLandscape()
- The alpha uses RenderTargetFormat RTF_R8 by default. The AlphaTextureChannel property defines the single color channel storing the Alpha data
| Name | GetHeightAlphaRenderTarget |
| Type | function |
| Header File | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Public/LandscapeTexturePatch.h |
| Include Path | #include "LandscapeTexturePatch.h" |
| Source | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Private/LandscapeTexturePatch.cpp |
UFUNCTION (BlueprintCallable, Category=LandscapePatch)
virtual UTextureRenderTarget2D * GetHeightAlphaRenderTarget
(
bool bMarkDirty
)
Parameters
| Name | Remarks |
|---|---|
| bMarkDirty | If true, marks the containing package as dirty, since the render target is presumably being written to. Can be set to false if the render target is not being written to. |