1
0
Fork 0
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:
kwolekr 2013-04-23 18:39:10 -04:00
parent 36747794ab
commit 770305e28d
8 changed files with 98 additions and 11 deletions

View file

@ -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 */