aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-03-27 00:18:43 +0000
committerGitHub <noreply@github.com>2019-03-27 00:18:43 +0000
commit42e1a127140965cac1be6e51e48192e341c2a29e (patch)
tree9c1d824e6b70838a13afa4870f219108d4d97899 /doc
parent5e7662ca168b47ed3e81901d53bff2eb712f571c (diff)
downloadminetest-42e1a127140965cac1be6e51e48192e341c2a29e.tar.gz
minetest-42e1a127140965cac1be6e51e48192e341c2a29e.tar.bz2
minetest-42e1a127140965cac1be6e51e48192e341c2a29e.zip
Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)
Makes the liquid waving shader per-nodedef like waving leaves/plants, instead of being applied to all liquids. Like the waving leaves/plants shaders, the liquid waving shader can also be applied to meshes and nodeboxes. Derived from a PR by t0ny2.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 9ac37e881..6d38e14c1 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6135,12 +6135,15 @@ Used by `minetest.register_node`.
legacy_wallmounted = false,
waving = 0,
- -- Valid for mesh, nodebox, plantlike, allfaces_optional nodes.
- -- 1 - wave node like plants (top of node moves, bottom is fixed)
+ -- Valid for drawtypes:
+ -- mesh, nodebox, plantlike, allfaces_optional, liquid, flowingliquid.
+ -- 1 - wave node like plants (node top moves side-to-side, bottom is fixed)
-- 2 - wave node like leaves (whole node moves side-to-side)
- -- caveats: not all models will properly wave.
- -- plantlike drawtype nodes can only wave like plants.
- -- allfaces_optional drawtype nodes can only wave like leaves.
+ -- 3 - wave node like liquids (whole node moves up and down)
+ -- Not all models will properly wave.
+ -- plantlike drawtype can only wave like plants.
+ -- allfaces_optional drawtype can only wave like leaves.
+ -- liquid, flowingliquid drawtypes can only wave like liquids.
sounds = {
footstep = <SimpleSoundSpec>,