procedurals
Procedural generation building blocks
Loading...
Searching...
No Matches
Noise.hpp File Reference
#include "Smoothing.hpp"
#include <cmath>
#include <cstdint>
#include <random>
Include dependency graph for Noise.hpp:

Go to the source code of this file.

Functions

float noise2D (float x, float y, uint64_t seed=0) noexcept
 2D deterministic value noise in [-1, 1].
 
float fbm2D (float x, float y, int octaves=5, uint64_t seed=0, float gain=0.5f, float lacunarity=2.0f) noexcept
 Fractal Brownian Motion (fBm)
 
float warp2D (float x, float y, uint64_t seed=0, float strength=2.0f) noexcept
 
float ridge2D (float x, float y, int octaves=5, float gain=0.5f, float lacunarity=2.0f, uint64_t seed=0) noexcept
 Ridged Fractal Noise (inverted fBm)
 
float rarity2D (float x, float y, float rarity=0.01f, uint64_t seed=0)
 
float worley2D (float x, float y, uint64_t seed=0) noexcept
 
void initPerm (uint8_t *perm, uint64_t seed)
 
float grad (int hash, float x, float y)
 
float simplex2D (float xin, float yin, uint64_t seed=0)
 

Detailed Description