mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
Starbeamrainbowlabs
1310dae884
This is just the start, if my plans work out. The eventual aim here is to implement a generic Heightmap2D class, just like Vector3. This will make interacting with heightmaps much easier.
12 lines
428 B
Lua
12 lines
428 B
Lua
local wea = worldeditadditions
|
|
local Vector3 = wea.Vector3
|
|
|
|
|
|
local terrain = {
|
|
make_heightmap = dofile(wea.modpath.."/utils/terrain/make_heightmap.lua"),
|
|
calculate_normals = dofile(wea.modpath.."/utils/terrain/calculate_normals.lua"),
|
|
calculate_slopes = dofile(wea.modpath.."/utils/terrain/calculate_slopes.lua"),
|
|
apply_heightmap_changes = dofile(wea.modpath.."/utils/terrain/apply_heightmap_changes.lua")
|
|
}
|
|
|
|
return terrain
|