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

Method createSimplexNoise

Source/Map/Random.cpp:276–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276std::vector<std::vector<float>> cRandomMap::createSimplexNoise(size_t pOctaves, float pFrequency, float pLacunarity, float pPersistence) {
277 SimplexNoise Noise(pFrequency, pLacunarity, pPersistence);
278
279 return Noise.create(mParams.mWidth, mParams.mHeight, pOctaves);
280}
281
282void cRandomMap::create(size_t pWidth, size_t pHeight, eTileTypes pTileType, eTileSub pTileSub) {
283

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected