]> git.lizzy.rs Git - minetest.git/commitdiff
Lua_api.txt: Revert changes to NoiseParams format example
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Mon, 23 Oct 2017 04:04:22 +0000 (11:04 +0700)
committerparamat <mat.gregory@virginmedia.com>
Mon, 23 Oct 2017 04:30:45 +0000 (05:30 +0100)
doc/lua_api.txt

index 9e3895d833939d500f15005e5f019aa79f9c015b..eaec904924e49d3196ad7f8d87c0d17f73f00563 100644 (file)
@@ -1043,13 +1043,13 @@ Accumulates the absolute value of each noise gradient result.
 Noise parameters format example for 2D or 3D perlin noise or perlin noise maps:
 
     np_terrain = {
-        offset = "0",
-        scale = "1",
-        spread = {x="500", y="500", z="500"},
+        offset = 0,
+        scale = 1,
+        spread = {x=500, y=500, z=500},
         seed = 571347,
         octaves = 5,
-        persist = "0.63",
-        lacunarity = "2.0",
+        persist = 0.63,
+        lacunarity = 2.0,
         flags = "defaults, absvalue"
     }
     ^ A single noise parameter table can be used to get 2D or 3D noise,