Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterQuadTree.h |
Include |
#include "WaterQuadTree.h" |
struct FWaterQuadTree
Name | Description | ||
---|---|---|---|
|
AddLake |
Add Lake by giving a closed spline that represents the lake |
|
|
AddOcean |
Add Ocean by giving a closed spline that represents the land mass for this ocean. |
|
|
AddWaterBodyRenderData ( |
Add water body render data to this tree. |
|
|
AddWaterTilesInsideBounds |
Add tiles that intersect InBounds recursively from the root node. |
|
|
BuildMaterialIndices ( |
Assign an index to each material and return the index of FarDistanceMaterial if not null. |
|
|
BuildWaterTileInstanceData ( |
Build the instance data needed to render the water tiles from a given point of view. |
|
|
GetBounds() |
Get bounds of the root node if there is one, otherwise some default box |
|
|
float |
GetLeafSize() |
Get cached leaf world size of one side of the tile (same applies for X and Y) |
|
float |
GetLODDistance ( |
Calculate the world distance to a LOD |
|
GetMaxLeafCount() |
Number of maximum leaf nodes on one side, same applies for X and Y. |
|
|
GetNodeCount() |
Total node count in the tree, including inner nodes, root node and leaf nodes |
|
|
GetTileRegion() |
Return the 2D region containing water tiles. Tiles can not be generated outside of this region |
|
|
GetTreeDepth() |
Max depth of the tree |
|
|
const TArray... |
GetWaterMaterials() |
|
|
InitTree |
Initialize the tree. |
|
|
QueryInterpolatedTileBaseHeightAtLocation ( |
Bilinear interpolation between four neighboring base height samples around InWorldLocationXY. |
|
|
QueryTileBaseHeightAtLocation ( |
Walks down the tree and returns the tile height at InWorldLocationXY in OutWorldHeight. |
|
|
QueryTileBoundsAtLocation |
Walks down the tree and returns the tile bounds at InWorldLocationXY in OutWorldBounds. |
|
|
Unlock ( |
Unlock to make it read-only. |
Name |
Description |
|
---|---|---|
|
FStagingInstanceData |
|
|
FTraversalDesc |
Output of the quadtree when asking to traverse it for visible water tiles |
|
FTraversalOutput |
Output of the quadtree when asking to traverse it for visible water tiles |
Name |
Description |
---|---|
FInstanceDataBuckets |
Name |
Description |
---|---|
INVALID_PARENT |