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

Builds LOD heightfield chunks with stable normals, skirts, and biome splat weights. 更多...

#include <TerrainMesh.h>

静态 Public 成员函数

static bool build (const Heightmap &heightmap, const TerrainLayers *layers, const TerrainMeshSettings &settings, TerrainMeshChunk &out, std::string *error=nullptr)
 Compatibility operation that builds a terrain mesh chunk.
 
static float estimateGeometricError (const Heightmap &heightmap, const TerrainMeshSettings &settings)
 Maximum world-space deviation between a LOD grid and the source heightfield.
 

详细描述

Builds LOD heightfield chunks with stable normals, skirts, and biome splat weights.

在文件 TerrainMesh.h 第 67 行定义.

成员函数说明

◆ build()

◆ estimateGeometricError()

float eve::procgen::TerrainMeshBuilder::estimateGeometricError ( const Heightmap &  heightmap,
const TerrainMeshSettings &  settings 
)
static

Maximum world-space deviation between a LOD grid and the source heightfield.

在文件 TerrainMesh.cpp 第 174 行定义.

引用了 bx, by, eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), eve::procgen::Heightmap::height(), maxError, s, step, x , 以及 y.

被这些函数引用 build() , 以及 eve::procgen::TerrainLodSelector::select().


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