mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 21:21:34 +00:00
implement infinite worlds with threaded chunk generation
This commit is contained in:
@ -1,4 +1,9 @@
|
||||
struct WorldGenerator {
|
||||
protocol WorldGenerator {
|
||||
mutating func reset(seed: UInt64)
|
||||
func makeChunk(id: SIMD3<Int>) -> Chunk
|
||||
}
|
||||
|
||||
struct StandardWorldGenerator: WorldGenerator {
|
||||
var noise: ImprovedPerlin<Float>!, noise2: SimplexNoise<Float>!
|
||||
|
||||
public mutating func reset(seed: UInt64) {
|
||||
|
Reference in New Issue
Block a user