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()
|
static |
Compatibility operation that builds a terrain mesh chunk.
在文件 TerrainMesh.cpp 第 105 行定义.
引用了 a, eve::procgen::MeshBuild::addTriangle(), eve::procgen::MeshBuild::addVertex(), b, c, cols, d, eve::procgen::Heightmap::data(), edge, edges, error, estimateGeometricError(), eve::procgen::TerrainLayers::getBiome(), eve::procgen::Heightmap::getHeight(), eve::procgen::TerrainLayers::getHeight(), eve::procgen::MeshBuild::getVertexCount(), eve::procgen::Heightmap::getWidth(), eve::procgen::TerrainLayers::getWidth(), eve::procgen::Grassland, eve::procgen::Heightmap::height(), n, normal, points, eve::procgen::MeshBuild::reserve(), rows, s, eve::procgen::MeshBuild::setMeta(), start, step, weights, eve::procgen::Wetland, x , 以及 y.
◆ estimateGeometricError()
|
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().
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainMesh.h
- src/modules/procgen/heightmap/TerrainMesh.cpp