mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Optional alpha channel support for entities
This commit is contained in:
parent
0396717256
commit
821e3f7072
7 changed files with 32 additions and 9 deletions
|
@ -304,6 +304,7 @@ void read_object_properties(lua_State *L, int index,
|
|||
lua_pop(L, 1);
|
||||
|
||||
getfloatfield(L, -1, "zoom_fov", prop->zoom_fov);
|
||||
getboolfield(L, -1, "use_texture_alpha", prop->use_texture_alpha);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -386,6 +387,8 @@ void push_object_properties(lua_State *L, ObjectProperties *prop)
|
|||
lua_setfield(L, -2, "wield_item");
|
||||
lua_pushnumber(L, prop->zoom_fov);
|
||||
lua_setfield(L, -2, "zoom_fov");
|
||||
lua_pushboolean(L, prop->use_texture_alpha);
|
||||
lua_setfield(L, -2, "use_texture_alpha");
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue