载入中...
搜索中...
未找到
TerrainEffect.h
浏览该文件的文档.
18[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainContrast(Heightmap& target, const Heightmap& mask,
55[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainSmooth(Heightmap& target, const Heightmap& mask,
70[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainRidges(Heightmap& target, const Heightmap& mask,
82[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainTerrace(Heightmap& target, const Heightmap& mask,
95[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainPower(Heightmap& target, const Heightmap& mask, float power);
120[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainHeightCurve(Heightmap& target, const Heightmap& mask,
137[[nodiscard]] EVENGINE_API_DOMAINS Result<int> applyTerrainHeightMix(Heightmap& target, const Heightmap& local,
Move-only, checked operation results for the common layer.
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
Definition EvpackPointGraphLoader.h:12
Result< int > applyTerrainTerrace(Heightmap &target, const Heightmap &mask, const TerrainTerraceSettings &settings)
Terrace scalar heights using nearest-even rounding and the shader's one-sided bevel.
Definition TerrainEffect.cpp:125
Result< int > applyTerrainContrast(Heightmap &target, const Heightmap &mask, float strength, float featureSize)
Apply the nine-tap Pcg contrast equation to native scalar heights.
Definition TerrainEffect.cpp:26
Result< int > applyTerrainHeightMix(Heightmap &target, const Heightmap &local, const Heightmap &global, const TerrainHeightMixSettings &settings)
Mix centered local brush heights into terrain, then globally mask and clip.
Definition TerrainEffect.cpp:179
Result< int > applyTerrainSmooth(Heightmap &target, const Heightmap &mask, const TerrainSmoothSettings &settings)
Apply Pcg's horizontal then vertical seven-pair weighted smooth passes.
Definition TerrainEffect.cpp:49
Result< int > applyTerrainPower(Heightmap &target, const Heightmap &mask, float power)
Apply the Pcg PowerOf control: lerp(height,pow(height,4-power),mask).
Definition TerrainEffect.cpp:142
Result< int > applyTerrainRidges(Heightmap &target, const Heightmap &mask, const TerrainRidgeSettings &settings)
Apply ordered horizontal/vertical ridge powers, neighbor mixing and per-pass clipping.
Definition TerrainEffect.cpp:89
Result< int > applyTerrainHeightCurve(Heightmap &target, const Heightmap &mask, const Heightmap &curve, float minimum, float maximum)
Apply the height-transform shader's smoothstep and one-row height curve.
Definition TerrainEffect.cpp:160
Mix-height scalar controls; delta scale is maximum-minimum, independent of clipping bounds....
Definition TerrainEffect.h:102
Ridge controls in caller height units, with explicit clipping bounds. Defaults match the Pcg packed s...
Definition TerrainEffect.h:32
Two-pass smoothing controls; radius in texels, verticality in [-1,1], strength in [0,...
Definition TerrainEffect.h:22
Terrace frequency in inverse height units, interior bevel in [0,1], strength in [0,...
Definition TerrainEffect.h:39