mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add generator layers
This commit is contained in:
parent
30925df319
commit
2a767a3638
7 changed files with 125 additions and 14 deletions
|
|
@ -1,3 +1,10 @@
|
|||
layers = {
|
||||
{block="base:grass_block", height=1},
|
||||
{block="base:dirt", height=1},
|
||||
{block="base:stone", height=-1},
|
||||
{block="base:bazalt", height=1},
|
||||
}
|
||||
|
||||
function generate_heightmap(x, y, w, h)
|
||||
local umap = Heightmap(w, h)
|
||||
local vmap = Heightmap(w, h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue