Transfer debug mapgen & create Region.weightFactor

This commit is contained in:
Van
2025-10-02 21:20:17 +03:00
parent 7e0586c55e
commit 1a116966f6
4 changed files with 51 additions and 92 deletions

View File

@@ -4,43 +4,3 @@ MapGen.Class = MapGen.require('MapGen')
Api.addModToGlobalSpace(MapGen, 'Core.MapGen')
-- DEBUG MAPGEN
---@type MapGen
local mapGenerator = MapGen.Class:new()
mapGenerator:RegisterLayer("world", -1000, 500)
mapGenerator:RegisterRegion("world",
{x = -100, y = 0, z = -100},
{x = 100, y = 0, z = 100},
{
landscapeNoise = {
offset = 50,
scale = 10,
spread = {x = 10, y = 10, z = 10},
seed = 47,
octaves = 8,
persistence = 0.4,
lacunarity = 2,
}
},
true)
mapGenerator:RegisterRegion("world",
{x = 50, y = 0, z = -100},
{x = 150, y = 0, z = 100},
{
landscapeNoise = {
offset = 100,
scale = 10,
spread = {x = 100, y = 100, z = 100},
seed = 47,
octaves = 8,
persistence = 0.4,
lacunarity = 2,
}
},
true)--]]
mapGenerator:run()