mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
initial chunk render caching
This commit is contained in:
@ -65,7 +65,7 @@ public struct Chunk: Hashable {
|
||||
|
||||
public func forEach(_ body: @escaping (Block, SIMD3<Int>) throws -> Void) rethrows {
|
||||
for i in 0..<Self.blockCount {
|
||||
try body(blocks[i], self.origin &+ SIMD3(
|
||||
try body(blocks[i], SIMD3(
|
||||
x: i & Self.mask,
|
||||
y: (i &>> Self.shift) & Self.mask,
|
||||
z: (i &>> (Self.shift + Self.shift)) & Self.mask))
|
||||
|
Reference in New Issue
Block a user