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

Method CreateArray

Source/Utils/SimplexIslands.hpp:272–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 std::vector<std::vector<float>> CreateArray( size_t pWidth, size_t pHeight, size_t pOctaves, float pRoughness, float pScale, short pSeed, bool pRadialEnabled, float pEdgeFade) {
273
274 auto map = generateOctavedSimplexNoise(pWidth, pHeight, pOctaves, pRoughness, pScale, pSeed);
275
276 normalizeArray(map);
277 if (pRadialEnabled) createRadialMask(map);
278 createEdgeMask(map, pEdgeFade);
279 flipVertically(map);
280
281 return map;
282 }
283};

Callers 1

createSimplexIslandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected