mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add test biomes
This commit is contained in:
parent
4bd5f1b629
commit
572eaec429
5 changed files with 99 additions and 5 deletions
|
|
@ -19,6 +19,20 @@ biomes = {
|
|||
{block="base:stone", height=-1},
|
||||
{block="base:bazalt", height=1},
|
||||
}
|
||||
},
|
||||
desert = {
|
||||
parameters = {
|
||||
{value=0.0, weight=1.0},
|
||||
{value=0.5, weight=1.0},
|
||||
},
|
||||
sea_layers = {
|
||||
{block="base:water", height=-1},
|
||||
},
|
||||
layers = {
|
||||
{block="base:sand", height=6},
|
||||
{block="base:stone", height=-1},
|
||||
{block="base:bazalt", height=1},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -65,3 +79,10 @@ function generate_heightmap(x, y, w, h, seed)
|
|||
map:crop(0, 0, w, h)
|
||||
return map
|
||||
end
|
||||
|
||||
function generate_biome_parameters(x, y, w, h, seed)
|
||||
local tempmap = Heightmap(w, h)
|
||||
tempmap:noise({x, y}, 0.4, 3)
|
||||
local hummap = Heightmap(w, h)
|
||||
return tempmap, hummap
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue