载入中...
搜索中...
未找到
#include "procgen/heightmap/TerrainMask.h"#include <array>#include <cstdint>#include <numbers>#include "procgen/heightmap/TerrainEffect.h"#include "procgen/heightmap/TerrainRasterInternal.h"#include "procgen/heightmap/TerrainStamp.h"命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| Result< int > | eve::procgen::smoothTerrainMask (Heightmap &target, const Heightmap &input, float verticality, float blurRadius) |
| Apply Pcg's two-pass Smooth ImageMask operation to a scalar mask. | |
| Result< int > | eve::procgen::configureTerrainBrushWorld (TerrainBrushBlendSettings &target, const TerrainStampSettings &world, int contextWidth, int contextHeight, const TerrainSampleGrid &heights) |
| Configure paint-context UV matrices from world sample centers and a rotated stamp footprint. | |
| Result< int > | eve::procgen::generateTerrainConcavityMask (Heightmap &target, const Heightmap &input, const Heightmap &heights, const Heightmap &curve, const TerrainConcavitySettings &settings, TerrainMaskBlend mode) |
| Generate source normalized-gradient concavity with border attenuation and indexed curve lookup. | |
| Result< int > | eve::procgen::generateTerrainCurvatureMask (Heightmap &target, const Heightmap &input, const Heightmap &heights, const Heightmap &curve, const TerrainCurvatureSettings &settings, TerrainMaskBlend mode) |
| Radially blur heights, derive source curvature, transform its curve and combine with an input mask. | |
| Result< int > | eve::procgen::generateTerrainErosionMask (Heightmap &target, const Heightmap &oldHeights, const Heightmap &erosion, const Heightmap &brush, const TerrainBrushBlendSettings &spatial, const Heightmap &curve, TerrainStrengthMode mode, float strength, bool userInvert) |
| Compose spatial erosion-output blending and the source's inverted strength filter atomically. | |
| Result< int > | eve::procgen::growShrinkTerrainMask (Heightmap &target, const Heightmap &source, const Heightmap &curve, float distance) |
| Ordered radial Grow/Shrink followed by the reference strength curve. | |
| Result< int > | eve::procgen::applyTerrainStrength (Heightmap &target, const Heightmap &source, const Heightmap &curve, TerrainStrengthMode mode, float strength, bool invert) |
| Apply the reference strength curve, inversion, mode and final interpolation. | |
| Result< int > | eve::procgen::blendTerrainBrush (Heightmap &target, const Heightmap &oldHeights, const Heightmap &newHeights, const Heightmap &brush, const TerrainBrushBlendSettings &settings) |
| Blend an erosion scalar output with old heights through transformed brush UVs. | |
| Result< int > | eve::procgen::transformTerrainMask (Heightmap &target, const Heightmap &source, const Heightmap &curve) |
| Transform scalar input through a clamped bilinear one-row curve texture. | |
| Result< int > | eve::procgen::generateTerrainRangeMask (Heightmap &target, const Heightmap &source, float minimum, float maximum, const Heightmap &filterCurve, const Heightmap &strengthCurve) |
| Generate height/range fitness with smoothstep followed by filter and strength curves. | |
| Result< int > | eve::procgen::deriveTerrainSlope (Heightmap &target, const Heightmap &heights, float spacingX, float spacingZ, float heightScale=1) |
| Derive the shader's slope metric 1-normal.y from world-scaled height gradients. | |
| Result< int > | eve::procgen::generateTerrainDistanceMask (Heightmap &target, const TerrainDistanceMaskSettings &settings, const Heightmap &filterCurve, const Heightmap &strengthCurve) |
| Generate a transformed distance mask using circle, X, Z or rounded-square coordinates. | |