diff options
author | Thomas--S <Thomas--S@users.noreply.github.com> | 2016-08-12 17:56:31 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-09-15 05:25:38 +0100 |
commit | 1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b (patch) | |
tree | c8070441d0af48cc0a8a2daddd6b30a9a360be89 /doc | |
parent | 6e30dd05f40a97106752d724d176443b184eaf27 (diff) | |
download | minetest-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.txt | 9 |
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. |