MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / SimplexNoise

Method SimplexNoise

Source/Utils/SimplexNoise.hpp:40–47  ·  view source on GitHub ↗

* Constructor of to initialize a fractal noise summation * * @param[in] frequency Frequency ("width") of the first octave of noise (default to 1.0) * @param[in] amplitude Amplitude ("height") of the first octave of noise (default to 1.0) * @param[in] lacunarity Lacunarity specifies the frequency multiplier between successive octaves (default to 2.0). * @param[in] p

Source from the content-addressed store, hash-verified

38 * @param[in] persistence Persistence is the loss of amplitude between successive octaves (usually 1/lacunarity)
39 */
40 explicit SimplexNoise(float frequency = 1.0f,
41 float lacunarity = 2.0f,
42 float persistence = 0.5f) :
43 mFrequency(frequency),
44 mAmplitude(frequency),
45 mLacunarity(lacunarity),
46 mPersistence(persistence) {
47 }
48
49 void normalizeArray(std::vector<std::vector<float>>& pNoise);
50 std::vector<std::vector<float>> create( size_t pWidth, size_t pHeight, size_t pOctaves );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected