19 static float simplex1(
float x)
21 return noise(x*1.2, -x*0.7);
24 static float noise(
float x);
26 static float noise(
float x,
float y);
29 float fractal(
size_t octaves,
float x)
const;
30 float fractal(
size_t octaves,
float x,
float y)
const;
41 float amplitude = 1.0f,
42 float lacunarity = 2.0f,
43 float persistence = 0.5f) :
44 mFrequency(frequency),
45 mAmplitude(amplitude),
46 mLacunarity(lacunarity),
47 mPersistence(persistence) {
A Perlin Simplex Noise C++ Implementation (1D, 2D, 3D, 4D).
Definition: SimplexNoise.h:17
static float noise(float x)
Definition: SimplexNoise.cpp:159
SimplexNoise(float frequency=1.0f, float amplitude=1.0f, float lacunarity=2.0f, float persistence=0.5f)
Definition: SimplexNoise.h:40
float fractal(size_t octaves, float x) const
Definition: SimplexNoise.cpp:280