载入中...
搜索中...
未找到
TerrainErosion.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Result.h"
4
5namespace eve::procgen {
6class Heightmap;
7struct TerrainWaterSettings;
8
15 float effect = -1, depositRate = 0.00004F;
16 float bankDeposit = 1, bedDeposit = 5;
17};
18
25
42 Heightmap& heights, Heightmap& sediment, const Heightmap& hardness, const Heightmap& rain,
44
51
64
71
84 Heightmap& heights, const Heightmap& hardness, const TerrainLegacySteepestErosionSettings& settings);
85
103 const Heightmap& velocityX,
104 const Heightmap& velocityZ,
107
116 float spacingX = 1, spacingZ = 1, heightScale = 1;
117 float reposeSlope = 11.430052F, dt = 0.00025F;
118 int iterations = 3;
119};
120
140} // namespace eve::procgen
#define EVENGINE_API_DOMAINS
Definition Export.h:110
OceanWakeSettings settings
ssq::Object water
Move-only, checked operation results for the common layer.
Heightmap sediment
Move-only operation result carrying either a value or Status.
Definition Result.h:176
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
EVENGINE_API_DOMAINS Result< int > applyTerrainLegacyHydraulic(Heightmap &heights, Heightmap &sediment, const Heightmap &hardness, const Heightmap &rain, const TerrainLegacyHydraulicSettings &settings)
Apply Pcg HeightMap.ErodeHydraulic's rain, four-way water and sediment loop atomically.
EVENGINE_API_DOMAINS Result< int > applyTerrainLegacyDistributedErosion(Heightmap &heights, const TerrainLegacyDistributedErosionSettings &settings)
Apply Pcg HeightMap.Erode's synchronous four-neighbor material redistribution.
EVENGINE_API_DOMAINS Result< int > applyTerrainLegacySteepestErosion(Heightmap &heights, const Heightmap &hardness, const TerrainLegacySteepestErosionSettings &settings)
Apply Pcg HeightMap.ErodeThermal's ordered steepest-cardinal transport with hardness.
EVENGINE_API_DOMAINS Result< int > applyTerrainSediment(Heightmap &heights, Heightmap &sediment, const Heightmap &velocityX, const Heightmap &velocityZ, const TerrainWaterSettings &water, const TerrainSedimentSettings &settings)
Apply the source sediment reaction and backtrace equations with atomic dual output.
Result< int > applyTerrainThermal(Heightmap &heights, Heightmap &sediment, const TerrainThermalSettings &settings)
Apply the source thermal equation, publishing height and sediment together.
Thresholds and iteration count for Pcg HeightMap.Erode's synchronous cardinal transport.
Controls Pcg HeightMap.ErodeHydraulic's legacy CPU erosion loop.
Thresholds and iteration count for Pcg HeightMap.ErodeThermal's in-place steepest transport.
Effective sediment coefficients from Hydraulic.compute, after UI conversion. The source hardcodes har...
Explicit simulation controls for the Pcg eight-neighbor thermal kernel. Height differences are multip...
Explicit constants for the source hydraulic water-flow equations, after UI unit conversion.