载入中...
搜索中...
未找到
eve::procgen::TerrainPipeline类 参考

Deterministic CPU terrain baking stages shared by editors and runtime tools. 更多...

#include <TerrainPipeline.h>

静态 Public 成员函数

static void erodeThermal (Heightmap &heightmap, const ThermalErosionSettings &settings={})
 Relax slopes exceeding the configured talus angle while conserving mass.
 
static void erodeHydraulic (Heightmap &heightmap, const HydraulicErosionSettings &settings={})
 Grid-based water/sediment simulation that carves channels and deposits sediment.
 
static void erodeFluvial (Heightmap &heightmap, const FluvialErosionSettings &settings={})
 Cut branching river valleys using depression-free drainage and stream power.
 
static TerrainErosionMap erodeFluvialDetailed (Heightmap &heightmap, const FluvialErosionSettings &settings={})
 Cut river valleys and return wear, deposition, and net-change diagnostic layers.
 
static HydrologyMap buildHydrology (const Heightmap &heightmap, float riverThreshold=0.025f, float seaLevel=0.25f, float coordinateScale=1.f, bool classifyLakes=true)
 Compute D8 drainage, upstream contributing area, and a thresholded river mask.
 
static ClimateMap buildClimate (const Heightmap &heightmap, const HydrologyMap &hydrology, float seaLevel=0.25f, float latitude=0.35f, float coordinateScale=1.f)
 Derive temperature, moisture, and biome layers from terrain and hydrology.
 

详细描述

Deterministic CPU terrain baking stages shared by editors and runtime tools.

在文件 TerrainPipeline.h 第 125 行定义.

成员函数说明

◆ buildClimate()

◆ buildHydrology()

◆ erodeFluvial()

void eve::procgen::TerrainPipeline::erodeFluvial ( Heightmap &  heightmap,
const FluvialErosionSettings &  settings = {} 
)
static

Cut branching river valleys using depression-free drainage and stream power.

在文件 TerrainPipeline.cpp 第 219 行定义.

引用了 erodeFluvialDetailed() , 以及 s.

被这些函数引用 eve::procgen::Procgen::erodeTerrainFluvialScaled().

◆ erodeFluvialDetailed()

◆ erodeHydraulic()

void eve::procgen::TerrainPipeline::erodeHydraulic ( Heightmap &  heightmap,
const HydraulicErosionSettings &  settings = {} 
)
static

Grid-based water/sediment simulation that carves channels and deposits sediment.

在文件 TerrainPipeline.cpp 第 179 行定义.

引用了 at, best, capacity, d, eve::procgen::Heightmap::data(), distance, dx, dy, eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), h, n, nx, ny, s, sediment, terrain, v, w, water, x , 以及 y.

被这些函数引用 eve::procgen::Procgen::erodeTerrainHydraulic().

◆ erodeThermal()

void eve::procgen::TerrainPipeline::erodeThermal ( Heightmap &  heightmap,
const ThermalErosionSettings &  settings = {} 
)
static

Relax slopes exceeding the configured talus angle while conserving mass.

在文件 TerrainPipeline.cpp 第 146 行定义.

引用了 at, d, eve::procgen::Heightmap::data(), distance, dx, dy, from, eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), h, height, nx, ny, s, w, x , 以及 y.

被这些函数引用 eve::procgen::Procgen::erodeTerrainThermal().


该类的文档由以下文件生成: