mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rework use_texture_alpha to provide three opaque/clip/blend modes
The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
This commit is contained in:
parent
edd8c3c664
commit
83229921e5
8 changed files with 164 additions and 66 deletions
|
@ -93,6 +93,14 @@ struct EnumString ScriptApiNode::es_NodeBoxType[] =
|
|||
{0, NULL},
|
||||
};
|
||||
|
||||
struct EnumString ScriptApiNode::es_TextureAlphaMode[] =
|
||||
{
|
||||
{ALPHAMODE_OPAQUE, "opaque"},
|
||||
{ALPHAMODE_CLIP, "clip"},
|
||||
{ALPHAMODE_BLEND, "blend"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
bool ScriptApiNode::node_on_punch(v3s16 p, MapNode node,
|
||||
ServerActiveObject *puncher, const PointedThing &pointed)
|
||||
{
|
||||
|
|
|
@ -54,4 +54,5 @@ public:
|
|||
static struct EnumString es_ContentParamType2[];
|
||||
static struct EnumString es_LiquidType[];
|
||||
static struct EnumString es_NodeBoxType[];
|
||||
static struct EnumString es_TextureAlphaMode[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue