VoxelEngine
 
Loading...
Searching...
No Matches
engine::PerlinNoise Class Reference

Public Types

using Seed = uint64_t
 

Public Member Functions

 PerlinNoise (Seed seed, float scale, float offset, uint32_t octaves=1, float persistence=0.5f, float lacunarity=2.0f)
 
float get2D (float x, float y) const noexcept
 
float get2DNormalized (float x, float y) const noexcept
 
void genArea2D (float *out, glm::ivec2 start, glm::ivec2 dims) const noexcept
 
float get3D (float x, float y, float z) const noexcept
 
float get3DNormalized (float x, float y, float z) const noexcept
 
void genArea3D (float *out, glm::ivec3 start, glm::ivec3 dims) const noexcept
 
float get4D (float x, float y, float z, float w) const noexcept
 
float get4DNormalized (float x, float y, float z, float w) const noexcept
 
void genArea4D (float *out, glm::ivec4 start, glm::ivec4 dims) const noexcept
 
void genPositions4D (float *out, const float *inX, const float *inY, const float *inZ, const float *inW, size_t count) const noexcept
 

The documentation for this class was generated from the following files: