aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2016-08-12 17:56:31 +0200
committerparamat <mat.gregory@virginmedia.com>2016-09-15 05:25:38 +0100
commit1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b (patch)
treec8070441d0af48cc0a8a2daddd6b30a9a360be89 /doc
parent6e30dd05f40a97106752d724d176443b184eaf27 (diff)
downloadminetest-1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b.tar.gz
minetest-1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b.tar.bz2
minetest-1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b.zip
Add an [invert:<mode> texture modifier
Inverts the given channels of the base image. Mode may contain the characters "r", "g", "b", "a". Only the channels that are mentioned in the mode string will be inverted.
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 aa4f129f0..41e7c00eb 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -318,6 +318,15 @@ Example:
default_sandstone.png^[opacity:127
+#### `[invert:<mode>`
+Inverts the given channels of the base image.
+Mode may contain the characters "r", "g", "b", "a".
+Only the channels that are mentioned in the mode string will be inverted.
+
+Example:
+
+ default_apple.png^[invert:rgb
+
#### `[brighten`
Brightens the texture.