载入中...
搜索中...
未找到
HexNoise.h
浏览该文件的文档.
Pointy-top hex metrics, directions and vertex helpers.
Deterministic four-channel value noise over the XZ plane.
Definition HexNoise.h:23
HexVec3 perturb(HexVec3 position) const noexcept
Perturbs a position in XZ by ±kCellPerturbStrength.
Definition HexNoise.cpp:56
float elevationPerturb(float worldX, float worldZ) const noexcept
Vertical perturbation applied to a cell's elevation, ±kElevationPerturbStrength.
Definition HexNoise.cpp:63
static constexpr float kCellScale
Scale of the noise relative to one hex cell (world units per noise unit).
Definition HexNoise.h:26
HexVec4 sample(float worldX, float worldZ) const noexcept
Samples the four noise channels at a world XZ position.
Definition HexNoise.cpp:32
Definition HexCell.h:9
Minimal 3-component float vector used by the hex mesh builders.
Definition HexMetrics.h:18
Four-component float vector, matching the reference four-channel noise sample.
Definition HexMetrics.h:43