One renderable heightfield chunk plus four ecological material weights. 更多...
#include <TerrainMesh.h>
Public 成员函数 | |
| const MeshBuild & | mesh () const |
| Mesh. | |
| MeshBuild & | mesh () |
| Mesh. | |
| int | getVertexCount () const |
| Returns the vertex count. | |
| int | getIndexCount () const |
| Returns the index count. | |
| int | getBaseVertexCount () const |
| Returns the base vertex count. | |
| int | getLodStep () const |
| Returns the lod step. | |
| int | getOriginX () const |
| Returns the origin x. | |
| int | getOriginY () const |
| Returns the origin y. | |
| int | getSplatWidth () const |
| Returns the splat width. | |
| int | getSplatHeight () const |
| Returns the splat height. | |
| float | getGeometricError () const |
| Returns the geometric error. | |
| int | getBiome (int vertex) const |
| Return the biome id stored for one mesh vertex, or -1 when out of range. | |
| float | getMaterialWeight (int vertex, int channel) const |
| Returns the material weight. | |
友元 | |
| class | TerrainMeshBuilder |
详细描述
One renderable heightfield chunk plus four ecological material weights.
Weight channels are sand, vegetation, rock, and snow. The base grid comes first; optional crack-hiding skirt vertices follow it.
在文件 TerrainMesh.h 第 27 行定义.
成员函数说明
◆ getBaseVertexCount()
|
inline |
Returns the base vertex count.
在文件 TerrainMesh.h 第 38 行定义.
被这些函数引用 eve::procgen::Procgen::generateTerrainAlbedoMap() , 以及 eve::procgen::Procgen::generateTerrainSplatMap().
◆ getBiome()
| int eve::procgen::TerrainMeshChunk::getBiome | ( | int | vertex | ) | const |
Return the biome id stored for one mesh vertex, or -1 when out of range.
在文件 TerrainMesh.cpp 第 100 行定义.
◆ getGeometricError()
|
inline |
Returns the geometric error.
在文件 TerrainMesh.h 第 50 行定义.
◆ getIndexCount()
|
inline |
Returns the index count.
在文件 TerrainMesh.h 第 36 行定义.
◆ getLodStep()
|
inline |
Returns the lod step.
在文件 TerrainMesh.h 第 40 行定义.
◆ getMaterialWeight()
| float eve::procgen::TerrainMeshChunk::getMaterialWeight | ( | int | vertex, |
| int | channel | ||
| ) | const |
Returns the material weight.
在文件 TerrainMesh.cpp 第 95 行定义.
引用了 getVertexCount().
被这些函数引用 eve::procgen::Procgen::generateTerrainAlbedoMap() , 以及 eve::procgen::Procgen::generateTerrainSplatMap().
◆ getOriginX()
|
inline |
Returns the origin x.
在文件 TerrainMesh.h 第 42 行定义.
◆ getOriginY()
|
inline |
Returns the origin y.
在文件 TerrainMesh.h 第 44 行定义.
◆ getSplatHeight()
|
inline |
Returns the splat height.
在文件 TerrainMesh.h 第 48 行定义.
被这些函数引用 eve::procgen::Procgen::generateTerrainAlbedoMap() , 以及 eve::procgen::Procgen::generateTerrainSplatMap().
◆ getSplatWidth()
|
inline |
Returns the splat width.
在文件 TerrainMesh.h 第 46 行定义.
被这些函数引用 eve::procgen::Procgen::generateTerrainAlbedoMap() , 以及 eve::procgen::Procgen::generateTerrainSplatMap().
◆ getVertexCount()
|
inline |
◆ mesh() [1/2]
|
inline |
Mesh.
在文件 TerrainMesh.h 第 32 行定义.
◆ mesh() [2/2]
|
inline |
友元及相关函数文档
◆ TerrainMeshBuilder
|
friend |
在文件 TerrainMesh.h 第 57 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainMesh.h
- src/modules/procgen/heightmap/TerrainMesh.cpp