mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
advanced biomes test
This commit is contained in:
parent
572eaec429
commit
6efc942a1d
1 changed files with 21 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ biomes = {
|
|||
plains = {
|
||||
parameters = {
|
||||
{value=0.5, weight=1.0},
|
||||
{value=0.5, weight=1.0},
|
||||
{value=0.5, weight=0.3},
|
||||
},
|
||||
sea_layers = {
|
||||
{block="base:water", height=-1},
|
||||
|
|
@ -22,8 +22,8 @@ biomes = {
|
|||
},
|
||||
desert = {
|
||||
parameters = {
|
||||
{value=0.0, weight=1.0},
|
||||
{value=0.5, weight=1.0},
|
||||
{value=0.0, weight=0.36},
|
||||
{value=0.0, weight=0.4},
|
||||
},
|
||||
sea_layers = {
|
||||
{block="base:water", height=-1},
|
||||
|
|
@ -33,6 +33,20 @@ biomes = {
|
|||
{block="base:stone", height=-1},
|
||||
{block="base:bazalt", height=1},
|
||||
}
|
||||
},
|
||||
mountains = {
|
||||
parameters = {
|
||||
{value=1.0, weight=1.0},
|
||||
{value=0.2, weight=0.5},
|
||||
},
|
||||
sea_layers = {
|
||||
{block="base:water", height=-1},
|
||||
},
|
||||
layers = {
|
||||
{block="base:stone", height=6},
|
||||
{block="base:stone", height=-1},
|
||||
{block="base:bazalt", height=1},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -82,7 +96,10 @@ end
|
|||
|
||||
function generate_biome_parameters(x, y, w, h, seed)
|
||||
local tempmap = Heightmap(w, h)
|
||||
tempmap:noise({x, y}, 0.4, 3)
|
||||
tempmap.noiseSeed = seed + 5324
|
||||
tempmap:noise({x, y}, 0.8, 3)
|
||||
local hummap = Heightmap(w, h)
|
||||
hummap.noiseSeed = seed + 953
|
||||
hummap:noise({x, y}, 0.2, 2)
|
||||
return tempmap, hummap
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue