Navigation
Unreal Engine C++ API Reference > Developer > NaniteUtilities
References
Module | NaniteUtilities |
Header | /Engine/Source/Developer/NaniteUtilities/Public/DisplacementMap.h |
Include | #include "DisplacementMap.h" |
Syntax
class FDisplacementMap
Variables
Type | Name | Description |
---|---|---|
TextureAddress | AddressX | |
TextureAddress | AddressY | |
int32 | BytesPerPixel | |
float | Center | |
float | Magnitude | |
uint32 | NumLevels | |
int32 | SizeX | |
int32 | SizeY | |
ETextureSourceF... | SourceFormat |
Constructors
Type | Name | Description |
---|---|---|
NANITEUTILIT... | FDisplacementMap () | |
NANITEUTILIT... | FDisplacementMap ( FImage&& TextureSourceImage, float InMagnitude, float InCenter, TextureAddress InAddressX, TextureAddress InAddressY ) |
Functions
Type | Name | Description |
---|---|---|
float | Load ( int32 x, int32 y ) | |
FVector2f | Load ( int32 x, int32 y, uint32 Level ) | |
float | Sample ( FVector2f UV ) | Bilinear filtered. |
FVector2f | Sample ( FVector2f MinUV, FVector2f MaxUV ) | Bilinear filtered. |
float | Sample ( int32 x, int32 y ) | |
FVector2f | Sample ( int32 x, int32 y, uint32 Level ) | Bilinear filtered. |