summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2018-03-18 17:25:05 +0000
committerrubenwardy <rw@rubenwardy.com>2018-03-29 14:53:12 +0100
commit821e3f7072b040f57e33785536a4f00a064a0069 (patch)
treeedd4b0e626e2f7b1369547c452fc2b65514c5d0c /doc
parent0396717256bb15ecb76469b7f148cfd6d952b34e (diff)
downloadminetest-821e3f7072b040f57e33785536a4f00a064a0069.tar.gz
minetest-821e3f7072b040f57e33785536a4f00a064a0069.tar.bz2
minetest-821e3f7072b040f57e33785536a4f00a064a0069.zip
Optional alpha channel support for entities
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 15036848b..946340cb3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2660,7 +2660,7 @@ Strings that need to be translated can contain several escapes, preceded by `@`.
chat_send_player_param3 = true,
get_all_craft_recipes_works = true,
use_texture_alpha = true,
- -- ^ The transparency channel of textures can be used optionally
+ -- ^ The transparency channel of textures can optionally be used on nodes
no_legacy_abms = true,
-- ^ Tree and grass ABMs are no longer done from C++
texture_names_parens = true,
@@ -2671,6 +2671,9 @@ Strings that need to be translated can contain several escapes, preceded by `@`.
-- ^ add_entity supports passing initial staticdata to on_activate
no_chat_message_prediction = true,
-- ^ Chat messages are no longer predicted
+ object_use_texture_alpha = true
+ -- ^ The transparency channel of textures can optionally be used on
+ -- objects (ie: players and lua entities)
}
* `minetest.has_feature(arg)`: returns `boolean, missing_features`
* `arg`: string or table in format `{foo=true, bar=true}`
@@ -4957,6 +4960,10 @@ Definition tables
-- ^ "wielditem" expects 'textures = {itemname}' (see 'visual' above).
colors = {},
-- ^ Number of required colors depends on visual.
+ use_texture_alpha = false,
+ -- ^ Use texture's alpha channel, excludes "upright_sprite" and "wielditem"
+ -- ^ Note: currently causes visual issues when viewed through other
+ -- ^ semi-transparent materials such as water.
spritediv = {x = 1, y = 1},
-- ^ Used with spritesheet textures for animation and/or frame selection
-- according to position relative to player.