aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkaramel59 <karamel@creativekara.fr>2020-08-27 21:48:18 +0200
committerGitHub <noreply@github.com>2020-08-27 21:48:18 +0200
commit1eaff3dfa4091c638be7a1e9777d35b5f665972c (patch)
treee980ce9abb9acf22ba8b6a33c2671d20282887c6 /doc
parentd052593c7ab3c57f83ea250fc10f7c1927962c09 (diff)
downloadminetest-1eaff3dfa4091c638be7a1e9777d35b5f665972c.tar.gz
minetest-1eaff3dfa4091c638be7a1e9777d35b5f665972c.tar.bz2
minetest-1eaff3dfa4091c638be7a1e9777d35b5f665972c.zip
Improve set_texture_mod documentation (#10339)
Properly documents the select_x_by_camera values
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 9770ae4a9..acbaf421e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6100,6 +6100,9 @@ object you are working with still exists.
* `set_yaw(radians)`: sets the yaw (heading).
* `get_yaw()`: returns number in radians
* `set_texture_mod(mod)`
+ * Set a texture modifier to the base texture, for sprites and meshes.
+ * When calling `set_texture_mod` again, the previous one is discarded.
+ * `mod` the texture modifier. See [Texture modifiers].
* `get_texture_mod()` returns current texture modifier
* `set_sprite(p, num_frames, framelength, select_x_by_camera)`
* Specifies and starts a sprite animation
@@ -6110,6 +6113,12 @@ object you are working with still exists.
* `framelength`: Time per animated frame in seconds, default: `0.2`
* `select_x_by_camera`: Only for visual = `sprite`. Changes the frame `x`
position according to the view direction. default: `false`.
+ * First column: subject facing the camera
+ * Second column: subject looking to the left
+ * Third column: subject backing the camera
+ * Fourth column: subject looking to the right
+ * Fifth column: subject viewed from above
+ * Sixth column: subject viewed from below
* `get_entity_name()` (**Deprecated**: Will be removed in a future version)
* `get_luaentity()`