mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
update base:demo generator & update default bpd values
This commit is contained in:
parent
27196f6166
commit
7b0db7b660
4 changed files with 9 additions and 8 deletions
|
|
@ -71,18 +71,19 @@ function generate_heightmap(x, y, w, h, s, inputs)
|
|||
desertmap:cellnoise({x+52, y+326}, 0.3*s, 2, 0.2)
|
||||
desertmap:add(0.4)
|
||||
map:mixin(desertmap, inputs[1])
|
||||
--map:add(0.1)
|
||||
return map
|
||||
end
|
||||
|
||||
function generate_biome_parameters(x, y, w, h, s)
|
||||
local tempmap = Heightmap(w, h)
|
||||
tempmap.noiseSeed = SEED + 5324
|
||||
tempmap:noise({x, y}, 0.04*s, 6)
|
||||
tempmap:noise({x, y}, 0.08*s, 6)
|
||||
tempmap:mul(0.5)
|
||||
tempmap:add(0.5)
|
||||
local hummap = Heightmap(w, h)
|
||||
hummap.noiseSeed = SEED + 953
|
||||
hummap:noise({x, y}, 0.04*s, 6)
|
||||
hummap:noise({x, y}, 0.08*s, 6)
|
||||
tempmap:pow(3)
|
||||
hummap:pow(3)
|
||||
return tempmap, hummap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue