summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBen Deutsch <ben@bendeutsch.de>2017-07-24 18:04:00 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-07-24 18:04:00 +0200
commitc50a57c070749f6b58c1490539cb6ff6e4289315 (patch)
tree77d14753ea83270f0ecfbe172ea974cc75bdb88e /doc
parentbefc3bba3d56b17d79ffae47d882650a15496e4d (diff)
downloadminetest-c50a57c070749f6b58c1490539cb6ff6e4289315.tar.gz
minetest-c50a57c070749f6b58c1490539cb6ff6e4289315.tar.bz2
minetest-c50a57c070749f6b58c1490539cb6ff6e4289315.zip
Clouds API: change speed from 'y' to 'z', ColorSpecs in Lua docs (#6164)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 3eb1fdc64..960b27441 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3306,11 +3306,12 @@ This is basically a reference to a C++ `ServerActiveObject`
* `set_clouds(parameters)`: set cloud parameters
* `parameters` is a table with the following optional fields:
* `density`: from `0` (no clouds) to `1` (full clouds) (default `0.4`)
- * `color`: basic cloud color, with alpha channel (default `#fff0f0e5`)
- * `ambient`: cloud color lower bound, use for a "glow at night" effect (default `#000000`)
+ * `color`: basic cloud color with alpha channel, ColorSpec (default `#fff0f0e5`)
+ * `ambient`: cloud color lower bound, use for a "glow at night" effect.
+ ColorSpec (alpha ignored, default `#000000`)
* `height`: cloud height, i.e. y of cloud base (default per conf, usually `120`)
* `thickness`: cloud thickness in nodes (default `16`)
- * `speed`: 2D cloud speed + direction in nodes per second (default `{x=0, y=-2}`)
+ * `speed`: 2D cloud speed + direction in nodes per second (default `{x=0, z=-2}`)
* `get_clouds()`: returns a table with the current cloud parameters as in `set_clouds`
* `override_day_night_ratio(ratio or nil)`
* `0`...`1`: Overrides day-night ratio, controlling sunlight to a specific amount