载入中...
搜索中...
未找到
HexNoise.cpp
浏览该文件的文档.
std::map< std::string, std::vector< Key >, std::less<> > channels
Definition AnimCurveLibrary.cpp:19
Deterministic asset-free noise for hex perturbation and generation.
static constexpr float kElevationPerturbStrength
Strength of the vertical elevation perturbation.
Definition HexMetrics.h:140
static constexpr float kCellPerturbStrength
Strength of the XZ position perturbation.
Definition HexMetrics.h:138
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
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