载入中...
搜索中...
未找到
HexSphereGenerator.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
7#include "common/Result.h"
9
10#include <cstdint>
11
12namespace eve::hexmap {
13
25 std::uint32_t seed = 0u;
27 std::int32_t landPercentage = 45;
29 std::int32_t waterLevel = 0;
31 std::int32_t octaves = 5;
33 float frequency = 1.55f;
34};
35
57
58} // namespace eve::hexmap
#define EVENGINE_API_WORLD
Definition Export.h:109
float u
Definition Grass.cpp:233
Editable spherical hex map over an icosahedral hex topology.
Move-only, checked operation results for the common layer.
TerrainThermalSettings settings
Move-only operation result carrying either a value or Status.
Definition Result.h:155
An editable hex map wrapped onto a sphere.
Result< void > generateSphereMap(HexSphereMap &map, const HexSphereGeneratorSettings &settings)
Regenerates every cell of map procedurally.
Tunables of the spherical generator.
float frequency
Continent field frequency; higher makes more, smaller land masses.
std::int32_t landPercentage
Target share of cells that end up above the water line, in percent.
std::int32_t waterLevel
Cells at or below this elevation are flooded.
std::uint32_t seed
Deterministic seed; the same seed always yields the same planet.
std::int32_t octaves
fBm octaves of the continent field.