Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double d9 = yOffset + (double)j4 * yScale + this.yCoord;
- int k4 = (int)d9;
- if (d9 < (double)k4)
- {
- --k4;
- }
- int l4 = k4 & 255;
- d9 = d9 - (double)k4;
- double d10 = d9 * d9 * d9 * (d9 * (d9 * 6.0D - 15.0D) + 10.0D);
- if (j4 == 0 || l4 != k)
- {
- k = l4;
- l = this.permutations[j3] + l4;
- i1 = this.permutations[l] + i4;
- j1 = this.permutations[l + 1] + i4;
- k1 = this.permutations[j3 + 1] + l4;
- l1 = this.permutations[k1] + i4;
- i2 = this.permutations[k1 + 1] + i4;
- d1 = this.lerp(d6, this.grad(this.permutations[i1], d5, d9, d7), this.grad(this.permutations[l1], d5 - 1.0D, d9, d7));
- d2 = this.lerp(d6, this.grad(this.permutations[j1], d5, d9 - 1.0D, d7), this.grad(this.permutations[i2], d5 - 1.0D, d9 - 1.0D, d7));
- d3 = this.lerp(d6, this.grad(this.permutations[i1 + 1], d5, d9, d7 - 1.0D), this.grad(this.permutations[l1 + 1], d5 - 1.0D, d9, d7 - 1.0D));
- d4 = this.lerp(d6, this.grad(this.permutations[j1 + 1], d5, d9 - 1.0D, d7 - 1.0D), this.grad(this.permutations[i2 + 1], d5 - 1.0D, d9 - 1.0D, d7 - 1.0D));
- }
- double d11 = this.lerp(d10, d1, d2);
- double d12 = this.lerp(d10, d3, d4);
- double d13 = this.lerp(d8, d11, d12);
- int j7 = i++;
- noiseArray[j7] += d13 * d0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement