载入中...
搜索中...
未找到
eve::procgen::TerrainLodSelector类 参考
Screen-space-error LOD choice based on measured heightfield deviation. 更多...
#include <TerrainMesh.h>
静态 Public 成员函数 | |
| static int | select (const Heightmap &heightmap, TerrainMeshSettings settings, int maxLod, float distance, float viewportHeight, float verticalFovDegrees, float targetPixelError) |
| Select the coarsest LOD whose projected geometric error is within budget. | |
详细描述
Screen-space-error LOD choice based on measured heightfield deviation.
在文件 TerrainMesh.h 第 79 行定义.
成员函数说明
◆ select()
|
static |
Select the coarsest LOD whose projected geometric error is within budget.
- 返回
- LOD in [0,maxLod], or -1 for invalid arguments.
在文件 TerrainMesh.cpp 第 202 行定义.
引用了 eve::procgen::TerrainMeshBuilder::estimateGeometricError(), eve::procgen::Heightmap::getHeight(), eve::procgen::Heightmap::getWidth(), lod, projected , 以及 s.
被这些函数引用 eve::procgen::PcgTerrainPhotoModeAuthority::selectLod() , 以及 eve::procgen::Procgen::selectTerrainLod().
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainMesh.h
- src/modules/procgen/heightmap/TerrainMesh.cpp