Navigation
API > API/Runtime > API/Runtime/Landscape
The snapshots contain a copy of the heightmap edge texels (both height and normal info). It is filled out in editor or at cook time, to make available at runtime for dynamic edge fixup.
| Name | FHeightmapTextureEdgeSnapshot |
| Type | struct |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeEdgeFixup.h |
| Include Path | #include "LandscapeEdgeFixup.h" |
Syntax
USTRUCT ()
struct FHeightmapTextureEdgeSnapshot
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EdgeData | TArray< uint32 > | LandscapeEdgeFixup.h | ||
| EdgeLength | int32 | LandscapeEdgeFixup.h | ||
| InitialEdgeHashes | TStaticArray< uint32, 8 > | LandscapeEdgeFixup.h | ||
| SnapshotEdgeHashes | TStaticArray< uint32, 8 > | LandscapeEdgeFixup.h | ||
| TextureSourceID | FGuid | LandscapeEdgeFixup.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::Landscape::EEdgeFlags CompareEdges
(
const FHeightmapTextureEdgeSnapshot& OldSnapshot |
Return the set of edges that are different (according to edge hashes) i.e. changes that could cause neighbors to patch. | LandscapeEdgeFixup.h | |
UE::Landscape::FHeightmapTexel GetCornerData
(
UE::Landscape::EEdgeIndex InEdgeIndex |
LandscapeEdgeFixup.h | ||
TArrayView< UE::Landscape::FHeightmapTexel > GetEdgeData
(
UE::Landscape::EEdgeIndex InEdgeIndex, |
Return edge snapshot data for this component, for the specified neighbor direction and mip. | LandscapeEdgeFixup.h | |
FString GetTextureSourceIDAsString() |
LandscapeEdgeFixup.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedPtr< FHeightmapTextureEdgeSnapshot > CreateEdgeSnapshotFromHeightmapSource
(
UTexture2D* InHeightmap, |
Create a snapshot from the heightmap source. | LandscapeEdgeFixup.h | |
static TSharedRef< FHeightmapTextureEdgeSnapshot > CreateEdgeSnapshotFromTextureData
(
const TArrayView64< UE::Landscape::FHeightmapTexel >& InHeightmapTextureData, |
Create a snapshot from an explicit byte array (in heightmap source standard layout) | LandscapeEdgeFixup.h |