Module |
|
Header |
/Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterQuadTree.h |
Include |
#include "WaterQuadTree.h" |
struct FNode
Name | Description | ||
---|---|---|---|
|
Bounds |
World bounds |
|
|
uint32[4] |
Children |
Children, 0 means invalid |
|
uint32: 1 |
HasCompleteSubtree |
If all 4 child nodes have a full set of leaf nodes (each descentant has 4 children all the way down) |
|
uint32: 1 |
IsSubtreeSameWaterBody |
If all descendant nodes are from the same waterbody. |
|
uint32: 28 |
ParentIndex |
Index to parent |
|
uint32: 16 |
TransitionWaterBodyIndex |
Index to the water body that this tile possibly transitions to |
|
uint32: 16 |
WaterBodyIndex |
Index into the water body render data array on the tree. |
Name | Description | |
---|---|---|
|
FNode() |
Name | Description | ||
---|---|---|---|
|
AddNodeForRender ( |
Add instance for rendering this node |
|
|
AddNodes |
Add nodes that intersect InMeshBounds. |
|
|
CanMerge ( |
Check if all conditions are met to potentially allow this and another node to render as one |
|
|
CanRender ( |
If this node is allowed to be rendered, it means it can be rendered in place of all leaf nodes in its subtree. |
|
|
QueryBaseHeightAtLocation ( |
Recursive function to query the height(prior to any displacement) at a given location, return false if no height could be found |
|
|
QueryBoundsAtLocation |
Recursive function to query the bounds of a tile at a given location, return false if no leaf node could be found |
|
|
SelectLOD ( |
Recursive function to select nodes visible from the current point of view |
|
|
SelectLODRefinement ( |
Recursive function to traverse down to the appropriate density level. |