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

Method DistributionVein

plugins/3dveins.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 PerlinNoise3D<float> strand1a, strand1b;
113
114 DistributionVein(MersenneRNG &rng) : Distribution(rng, 96) {
115 density1.init(rng);
116 density2.init(rng);
117 strand1a.init(rng);
118 strand1b.init(rng);
119 }
120
121 float eval(float x, float y, float z) {
122 return 0.1f * density1(x/96, y/96, z/48)

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected