Mapgen: add smooth mapgen

This commit is contained in:
Van
2025-10-01 20:10:58 +03:00
parent f47ee7e4cb
commit 7c6909ab8e
2 changed files with 67 additions and 23 deletions

View File

@@ -12,19 +12,35 @@ local mapGenerator = MapGen.Class:new()
mapGenerator:RegisterLayer("world", -1000, 500)
mapGenerator:RegisterRegion("world",
{x = -1000, y = 0, z = -1000},
{x = 1000, y = 0, z = 1000},
{x = -100, y = 0, z = -100},
{x = 100, y = 0, z = 100},
{
landscapeNoise = {
offset = 0,
offset = 50,
scale = 10,
spread = {x = 10, y = 10, z = 10},
seed = 47,
octaves = 4,
persistence = 0.3,
lacunarity = 3,
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()