mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-17 18:38:33 +02:00
20ccf321ce
First up, we're going to attempt to implement a snowballs-based algorithm. Reference: https://jobtalle.com/simulating_hydraulic_erosion.html
10 lines
253 B
Lua
10 lines
253 B
Lua
--[[
|
|
2D erosion algorithm based on snowballs
|
|
Note that this *mutates* the given heightmap.
|
|
@source https://jobtalle.com/simulating_hydraulic_erosion.html
|
|
|
|
]]--
|
|
function worldeditadditions.erode.snowballs(heightmap, heightmap_size, erosion_params)
|
|
|
|
end
|