singleSimplexFractalFBM3 method

double singleSimplexFractalFBM3(
  1. int x,
  2. int y,
  3. int z
)

Implementation

double singleSimplexFractalFBM3(int x, int y, int z) {
  var seed = this.seed;
  var sum = baseNoise.singleSimplex3(seed, x, y, z);
  var amp = 1.0;
  var x1 = x.toDouble();
  var y1 = y.toDouble();
  var z1 = z.toDouble();

  for (var i = 1; i < octaves; i++) {
    x1 *= lacunarity;
    y1 *= lacunarity;
    z1 *= lacunarity;

    amp *= gain;
    sum +=
        baseNoise.singleSimplex3(++seed, x1.toInt(), y1.toInt(), z1.toInt()) *
            amp;
  }

  return sum * fractalBounding;
}