diff options
author | kwolekr <kwolekr@minetest.net> | 2013-04-23 18:39:10 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-23 22:15:51 -0400 |
commit | 770305e28dc0ed9aea0eefe041477a46d64eee58 (patch) | |
tree | 2306e3f96cdb54848c12f5ee159b12cdb55dcfb2 /src/scriptapi_content.cpp | |
parent | 36747794ab981e5d1cc085075979ef981e783b55 (diff) | |
download | minetest-770305e28dc0ed9aea0eefe041477a46d64eee58.tar.gz minetest-770305e28dc0ed9aea0eefe041477a46d64eee58.tar.bz2 minetest-770305e28dc0ed9aea0eefe041477a46d64eee58.zip |
Add option to use texture alpha channel
Diffstat (limited to 'src/scriptapi_content.cpp')
-rw-r--r-- | src/scriptapi_content.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scriptapi_content.cpp b/src/scriptapi_content.cpp index 3b7ed5179..30fd70349 100644 --- a/src/scriptapi_content.cpp +++ b/src/scriptapi_content.cpp @@ -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 */ |