struct

WaterZoneComponent

A water zone: the authored object that says which stretch of world the water system is responsible for. UE's WaterZone does three jobs and so does this one — it bounds which bodies participate, it fixes the water info texture's extent and resolution (instead of the extent being whatever the union of the bodies happened to be, which moved every time a body was edited), and it carries the far-distance mesh that fills the horizon past the bodies themselves.

Module
Game
Header
#include "Game/Components/WaterZoneComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

A scene with no zone still works: the info texture falls back to the union of the published bodies and nothing draws a far mesh. A zone is how you take control of that, not a thing you must have.

Properties

TypeNameDescription
boolenabledDefault true.
floatextentSquare side, in metres, centred on the entity. Bodies whose extent does not reach inside it are left out of the info texture entirely. Default 2048.0f.
int32_tinfoResolutionInfo texture resolution per side. Fixed by the zone rather than by the cvar so a designer can pay for a narrow river's channel without raising the cost of every other scene. Default 512.
boolfarDistanceMeshThe horizon filler: a coarse quadtree surface out to Far Distance Extent, drawn under everything else so an ocean does not simply stop where its body's extent runs out. Default true.
floatfarDistanceExtentDefault 16384.0f.
int32_tfarLodLevelsDefault 3.
int32_tfarLodQuadsDefault 8.
floatfarLodScaleDefault 1.5f.
Vec3colorShading of the far surface. Deliberately its own set rather than borrowed from a body: the far mesh has no bathymetry and no shoreline, and matching it to a lake's tint is an authoring choice, not a rule. Default Vec3(0.03f, 0.12f, 0.19f).
floatopacityDefault 0.9f.
floatdepthFadeDefault 4.0f.
floatabsorptionDensityDefault 0.5f.
floatwaveAmplitudeDefault 0.4f.
floatwaveLengthDefault 48.0f.
floatwaveSteepnessDefault 0.35f.
floatwaveSpeedDefault 4.0f.
floatwaveDirectionDegreesDefault 0.0f.
std::stringbuiltFingerprint
floatwaveTimeDefault 0.0f.

Constructors

SignatureNameDescription
WaterZoneComponent() = defaultWaterZoneComponent

Function details

WaterZoneComponent

C++
WaterZoneComponent() = default
Generated from Game/Components/WaterZoneComponent.h via game.json · Nov 5, 2026Version 1.0.0