载入中...
搜索中...
未找到
TerrainEffect.cpp 文件参考

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

Result< int > eve::procgen::applyTerrainContrast (Heightmap &target, const Heightmap &mask, float strength, float featureSize)
 Apply the nine-tap Pcg contrast equation to native scalar heights.
 
Result< int > eve::procgen::applyTerrainSmooth (Heightmap &target, const Heightmap &mask, const TerrainSmoothSettings &settings)
 Apply Pcg's horizontal then vertical seven-pair weighted smooth passes.
 
Result< int > eve::procgen::applyTerrainRidges (Heightmap &target, const Heightmap &mask, const TerrainRidgeSettings &settings)
 Apply ordered horizontal/vertical ridge powers, neighbor mixing and per-pass clipping.
 
Result< int > eve::procgen::applyTerrainTerrace (Heightmap &target, const Heightmap &mask, const TerrainTerraceSettings &settings)
 Terrace scalar heights using nearest-even rounding and the shader's one-sided bevel.
 
Result< int > eve::procgen::applyTerrainPower (Heightmap &target, const Heightmap &mask, float power)
 Apply the Pcg PowerOf control: lerp(height,pow(height,4-power),mask).
 
Result< int > eve::procgen::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.
 
Result< int > eve::procgen::applyTerrainHeightMix (Heightmap &target, const Heightmap &local, const Heightmap &global, const TerrainHeightMixSettings &settings)
 Mix centered local brush heights into terrain, then globally mask and clip.