14 using Seed = uint64_t;
20 float persistence = 0.5f,
21 float lacunarity = 2.0f
24 float get2D(
float x,
float y)
const noexcept;
25 float get2DNormalized(
float x,
float y)
const noexcept;
26 void genArea2D(
float* out, glm::ivec2 start, glm::ivec2 dims)
const noexcept;
28 float get3D(
float x,
float y,
float z)
const noexcept;
29 float get3DNormalized(
float x,
float y,
float z)
const noexcept;
30 void genArea3D(
float* out, glm::ivec3 start, glm::ivec3 dims)
const noexcept;
32 float get4D(
float x,
float y,
float z,
float w)
const noexcept;
33 float get4DNormalized(
float x,
float y,
float z,
float w)
const noexcept;
34 void genArea4D(
float* out, glm::ivec4 start, glm::ivec4 dims)
const noexcept;
45 FastNoise::SmartNode<FastNoise::FractalFBm> m_noise;
52 static constexpr float MaxAmplitude(
53 const uint32_t octaves,
const float persistence
58 for (uint32_t i = 0; i < octaves; ++i) {
60 amplitude *= persistence;