* 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
| 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 ); |
nothing calls this directly
no outgoing calls
no test coverage detected