struct
FWaterQuadTreeParams
- Module
- Game
- Header
#include "Water/WaterQuadTree.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
float | rootSize | Full side length of the root node, in metres, and its centre in body space. The root is snapped to the leaf grid before selection so a camera walking across the ocean does not shift every vertex by a sub-texel amount each frame — that shimmer is what a camera-following mesh is otherwise guaranteed to produce. Default 4096.0f. |
Vec2 | rootCenter | Default Vec2(0.0f, 0.0f). |
int32_t | maxLevels | Default 6. |
float | lodScale | A node subdivides while the viewer is closer than size * lodScale. 2.0 puts the level boundary at two node-widths, which is the range over which the halved triangle size is not visible. Default 2.0f. |
int32_t | quadsPerNode | Quads per side inside one leaf. Every leaf carries the same count, so the triangle budget is selectedNodes * quadsPerNode^2 * 2. Default 8. |
float | morphFraction | Fraction of a node's LOD range spent morphing its odd vertices onto the even ones. Below this fraction the node is un-morphed; at the far end it is fully collapsed onto the parent's sampling, so the level change costs nothing visible. 0 disables morphing. Default 0.35f. |
float | cullHalfExtent | Half-extent of the frustum-free cull box in body space. A node whose square lies entirely outside is dropped; 0 keeps everything, which is what a test that only measures selection wants. Default 0.0f. |
Generated from Water/WaterQuadTree.h via game.json · Nov 5, 2026Version 1.0.0