struct
WaterComponent
- Module
- SceneTypes
- Header
#include "SceneTypes/Components/WaterComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | size | Default 128.0f. |
int32_t | gridResolution | Default 128. |
float | waveAmplitude | Default 0.4f. |
float | waveLength | Default 24.0f. |
float | waveSteepness | Default 0.6f. |
float | waveSpeed | Default 4.0f. |
float | waveDirectionDegrees | Default 0.0f. |
Vec3 | color | Default Vec3(0.04f, 0.16f, 0.22f). |
float | opacity | Default 0.72f. |
float | depthFade | Default 1.5f. |
float | absorptionDensity | Default 0.35f. |
float | refractionStrength | Default 0.5f. |
bool | foamEnabled | Default true. |
float | shoreFoamWidth | Default 1.0f. |
float | waterDepth | Water column depth the info texture rasters under this plane. A plane has no bed to measure, so this is what it declares; 0 means "never said" and the shader keeps the screen-space thickness it always used. Default 10.0f. |
std::string | builtFingerprint | |
float | waveTime | Default 0.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
WaterComponent() = default | WaterComponent |
Function details
WaterComponent
C++
WaterComponent() = defaultGenerated from SceneTypes/Components/WaterComponent.h via scenetypes.json · Nov 4, 2026Version 1.0.0