This commit is contained in:
adman
2026-07-05 10:49:45 +02:00
parent a8b090227b
commit eab050e291
5 changed files with 38 additions and 25 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func PerlinNoiseFromXoroshiro(x Xoroshiro) (p PerlinNoise) {
p.d[i] = p.d[j]
p.d[j] = n
}
p.d[256] = 0
p.d[256] = p.d[0]
i2 := math.Floor(p.yoffset)
d2 := p.yoffset - i2
p.h2 = uint8(int(i2))