class
FTerrainErosion
- Module
- Game
- Header
#include "Terrain/TerrainErosion.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
FTerrainTexelRegion | Hydraulic | Both run in place over the whole field and return its full extent, so the caller uploads/rebuilds once instead of chasing per-droplet rects. |
FTerrainTexelRegion | Thermal | |
FTerrainTexelRegion | HydraulicSlice | The same passes, budget droplets or iterations at a time, so the editor can spread seconds of CPU over frames and stop between slices. |
FTerrainTexelRegion | ThermalSlice | |
double | TotalMass | Sum of every sample — the conservation probe the tests assert against. |
double | MeanSlope | Mean absolute height difference between 4-neighbours, in meters. |
Function details
Hydraulic
C++
static FTerrainTexelRegion Hydraulic(FEditableHeightfield& field, float worldSize, const FTerrainHydraulicParams& params)Both run in place over the whole field and return its full extent, so the caller uploads/rebuilds once instead of chasing per-droplet rects.
Thermal
C++
static FTerrainTexelRegion Thermal(FEditableHeightfield& field, float worldSize, const FTerrainThermalParams& params)HydraulicSlice
C++
static FTerrainTexelRegion HydraulicSlice(FEditableHeightfield& field, float worldSize, const FTerrainHydraulicParams& params, FTerrainErosionRun& run, int32_t budget)The same passes, budget droplets or iterations at a time, so the editor can spread seconds of CPU over frames and stop between slices. Both return an empty region once the run is complete.
ThermalSlice
C++
static FTerrainTexelRegion ThermalSlice(FEditableHeightfield& field, float worldSize, const FTerrainThermalParams& params, FTerrainErosionRun& run, int32_t budget)TotalMass
C++
static double TotalMass(const FEditableHeightfield& field)Sum of every sample — the conservation probe the tests assert against.
MeanSlope
C++
static double MeanSlope(const FEditableHeightfield& field, float worldSize)Mean absolute height difference between 4-neighbours, in meters. Erosion that works lowers this; a pass that raises it moved material uphill.
Generated from Terrain/TerrainErosion.h via game.json · Nov 5, 2026Version 1.0.0