mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor blocks layers
This commit is contained in:
parent
af485dd7cb
commit
2a506e9891
4 changed files with 71 additions and 85 deletions
|
|
@ -42,11 +42,11 @@ end
|
|||
|
||||
function generate_heightmap(x, y, w, h, seed)
|
||||
-- blocks per dot
|
||||
-- 8 - linear interpolation is visible, but not so much (Minecraft)
|
||||
-- 8 - linear interpolation is visible, but not so much
|
||||
-- 4 - high quality, but slower
|
||||
-- 2 - you really don't need it
|
||||
-- 1 - please have mercy on your CPU
|
||||
local bpd = 8
|
||||
local bpd = 4
|
||||
local map = _generate_heightmap(
|
||||
math.floor(x/bpd), math.floor(y/bpd),
|
||||
math.floor(w/bpd)+1, math.floor(h/bpd)+1, seed, bpd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue