mirror of
https://github.com/minetest/minetest.git
synced 2025-09-19 03:40:35 +02: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:
@@ -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[];
|
||||
};
|
||||
|
Reference in New Issue
Block a user