diff options
author | Thomas--S <Thomas--S@users.noreply.github.com> | 2016-07-02 17:58:08 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2016-08-12 15:20:30 +0200 |
commit | f21dae63390aa872062bcfc96fc6817b0fcfe601 (patch) | |
tree | 0a4ed31ac86eed3ca9ca85924473d0a67f8a6db1 /doc | |
parent | c4e77b406aa73dd6db79f1183a0a65a32f284111 (diff) | |
download | minetest-f21dae63390aa872062bcfc96fc6817b0fcfe601.tar.gz minetest-f21dae63390aa872062bcfc96fc6817b0fcfe601.tar.bz2 minetest-f21dae63390aa872062bcfc96fc6817b0fcfe601.zip |
Add an [opacity:<r> texture modifier. Makes the base image transparent according to the given ratio. r must be between 0 and 255. 0 means totally transparent. 255 means totally opaque. Useful for texture overlaying.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ce40e082c..182f5c821 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -292,6 +292,16 @@ Example: default_sandstone.png^[resize:16x16 +#### `[opacity:<r>` + Makes the base image transparent according to the given ratio. + r must be between 0 and 255. + 0 means totally transparent. + 255 means totally opaque. + +Example: + + default_sandstone.png^[opacity:127 + #### `[brighten` Brightens the texture. |