mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add Lua PerlinNoiseMap:get#dMap_flat API
This commit is contained in:
parent
8aa930f28e
commit
18882a4d26
3 changed files with 56 additions and 1 deletions
|
@ -1529,6 +1529,15 @@ methods:
|
|||
- get2d(pos) -> 2d noise value at pos={x=,y=}
|
||||
- get3d(pos) -> 3d noise value at pos={x=,y=,z=}
|
||||
|
||||
PerlinNoiseMap: A fast, bulk perlin noise generator
|
||||
- Can be created via PerlinNoiseMap(noiseparams, size)
|
||||
- Also minetest.get_perlin_map(noiseparams, size)
|
||||
methods:
|
||||
- get2dMap(pos) -> <size.x>X<size.y> 2d array of 2d noise values starting at pos={x=,y=}
|
||||
- get3dMap(pos) -> <size.x>X<size.y>X<size.z> 3d array of 3d noise values starting at pos={x=,y=,z=}
|
||||
- get2dMap_flat(pos) -> Flat <size.x * size.y> element array of 2d noise values starting at pos={x=,y=}
|
||||
- get3dMap_flat(pos) -> Same as get2dMap_flat, but 3d noise
|
||||
|
||||
VoxelManip: An interface to the MapVoxelManipulator for Lua
|
||||
- Can be created via VoxelManip()
|
||||
- Also minetest.get_voxel_manip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue