aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-26 21:04:06 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-27 22:35:35 -0400
commit18882a4d2603488bdfb5a519a8bedf300b154940 (patch)
treed01ef74ac1918be87f3dd29371fc56473bf444e8 /doc
parent8aa930f28e69f3518831500022988ca2a4b6985d (diff)
downloadminetest-18882a4d2603488bdfb5a519a8bedf300b154940.tar.gz
minetest-18882a4d2603488bdfb5a519a8bedf300b154940.tar.bz2
minetest-18882a4d2603488bdfb5a519a8bedf300b154940.zip
Add Lua PerlinNoiseMap:get#dMap_flat API
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 84769f8d8..62abb2e3e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -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()