noise3 method

  1. @override
double noise3(
  1. double x,
  2. double y,
  3. double z
)
override

Implementation

@override
double noise3(double x, double y, double z) {
  double n = generator.noise3(x, y, z);

  for (int i = 1; i < octaves; i++) {
    n += generator.noise3((x + (i * 100000)) * gain * i,
        (y + (i * 100000)) * gain * i, (z + (i * 100000)) * gain * i);
  }

  return n * multiplier;
}