mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Add option to use texture alpha channel
This commit is contained in:
parent
36747794ab
commit
770305e28d
8 changed files with 98 additions and 11 deletions
|
@ -225,6 +225,11 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
|||
lua_pop(L, 1);
|
||||
|
||||
f.alpha = getintfield_default(L, index, "alpha", 255);
|
||||
|
||||
bool usealpha = getboolfield_default(L, index,
|
||||
"use_texture_alpha", false);
|
||||
if (usealpha)
|
||||
f.alpha = 0;
|
||||
|
||||
/* Other stuff */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue