mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
turn the ChunkID type alias into a real type
This commit is contained in:
@ -10,8 +10,8 @@ struct TerrorTowerGenerator: WorldGenerator {
|
||||
self.noise2 = LayeredNoise(random: &random, octaves: 3, frequency: 0.1)
|
||||
}
|
||||
|
||||
public func makeChunk(id chunkID: SIMD3<Int>) -> Chunk {
|
||||
let chunkOrigin = chunkID &<< Chunk.shift
|
||||
public func makeChunk(id chunkID: ChunkID) -> Chunk {
|
||||
let chunkOrigin = chunkID.getPosition()
|
||||
var chunk = Chunk(position: chunkOrigin)
|
||||
chunk.fill(allBy: { position in
|
||||
let fpos = SIMD3<Float>(chunkOrigin &+ position)
|
||||
|
Reference in New Issue
Block a user