MCPcopy Create free account
hub / github.com/DFHack/dfhack / DistributionClusterOne

Method DistributionClusterOne

plugins/3dveins.cpp:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 PerlinNoise3D<float> density1, density2, shape;
173
174 DistributionClusterOne(MersenneRNG &rng) : Distribution(rng, 96) {
175 density1.init(rng);
176 density2.init(rng);
177 shape.init(rng);
178 }
179
180 float eval(float x, float y, float z) {
181 return 0.05f * density1(x/96, y/96, z/48)

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected