fix significant oversights in noise & random

This commit is contained in:
2024-09-05 21:46:49 +10:00
parent 2a4eb2283a
commit 301aa28c4d
9 changed files with 41 additions and 55 deletions

View File

@ -59,7 +59,7 @@ public struct Chunk: Hashable {
let x = i & Self.mask
let y = (i &>> Self.shift) & Self.mask
let z = (i &>> (Self.shift + Self.shift)) & Self.mask
blocks[i].type = calculation(self.origin &+ SIMD3(x, y, z))
blocks[i].type = calculation(SIMD3(x, y, z))
}
}