Tunables of the spherical generator. 更多...
#include <HexSphereGenerator.h>
Public 属性 | |
| std::uint32_t | seed = 0u |
| Deterministic seed; the same seed always yields the same planet. | |
| std::int32_t | landPercentage = 45 |
| Target share of cells that end up above the water line, in percent. | |
| std::int32_t | waterLevel = 0 |
| Cells at or below this elevation are flooded. | |
| std::int32_t | octaves = 5 |
| fBm octaves of the continent field. | |
| float | frequency = 1.55f |
| Continent field frequency; higher makes more, smaller land masses. | |
详细描述
Tunables of the spherical generator.
The planar generator works in the map's own XZ plane, so its noise field, its plate seeding and its river carving all have a coordinate frame to live in. A sphere has none: this generator therefore samples a 3D noise field along each cell's own direction, which is the only formulation that does not pinch at the poles or seam at the date line.
在文件 HexSphereGenerator.h 第 23 行定义.
类成员变量说明
◆ frequency
| float eve::hexmap::HexSphereGeneratorSettings::frequency = 1.55f |
Continent field frequency; higher makes more, smaller land masses.
在文件 HexSphereGenerator.h 第 33 行定义.
◆ landPercentage
| std::int32_t eve::hexmap::HexSphereGeneratorSettings::landPercentage = 45 |
Target share of cells that end up above the water line, in percent.
在文件 HexSphereGenerator.h 第 27 行定义.
◆ octaves
| std::int32_t eve::hexmap::HexSphereGeneratorSettings::octaves = 5 |
fBm octaves of the continent field.
在文件 HexSphereGenerator.h 第 31 行定义.
◆ seed
| std::uint32_t eve::hexmap::HexSphereGeneratorSettings::seed = 0u |
Deterministic seed; the same seed always yields the same planet.
在文件 HexSphereGenerator.h 第 25 行定义.
◆ waterLevel
| std::int32_t eve::hexmap::HexSphereGeneratorSettings::waterLevel = 0 |
Cells at or below this elevation are flooded.
在文件 HexSphereGenerator.h 第 29 行定义.
该结构体的文档由以下文件生成:
- src/modules/hexmap/HexSphereGenerator.h