NoiseGenerator.java | 655 return NoiseMath.lerp(floorZ, NoiseMath.lerp(floorY, NoiseMath.lerp(floorX, NoiseMath.grad(hash[AA], x, y, z),
656 NoiseMath.grad(hash[BA], x - 1, y, z)),
657 NoiseMath.lerp(floorX, NoiseMath.grad(hash[AB], x, y - 1, z),
658 NoiseMath.grad(hash[BB], x - 1, y - 1, z))),
659 NoiseMath.lerp(floorY, NoiseMath.lerp(floorX, NoiseMath.grad(hash[AA + 1], x, y, z - 1),
660 NoiseMath.grad(hash[BA + 1], x - 1, y, z - 1)),
661 NoiseMath.lerp(floorX, NoiseMath.grad(hash[AB + 1], x, y - 1, z - 1),
662 NoiseMath.grad(hash[BB + 1], x - 1, y - 1, z - 1))));
824 public static float grad(int hash, float x, float y, float z) { method in class:NoiseGenerator.NoiseMath [all...] |