MCPcopy Create free account
hub / github.com/esengine/esengine / getSimplexNoise

Function getSimplexNoise

packages/procgen/src/nodes/ProcGenNodes.ts:31–37  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

29}
30
31function getSimplexNoise(seed: number): SimplexNoise {
32 const key = `simplex_${seed}`;
33 if (!noiseCache.has(key)) {
34 noiseCache.set(key, new SimplexNoise(seed));
35 }
36 return noiseCache.get(key) as SimplexNoise;
37}
38
39function getWorleyNoise(seed: number): WorleyNoise {
40 const key = `worley_${seed}`;

Callers 1

executeMethod · 0.85

Calls 3

hasMethod · 0.65
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected