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
|
@ -180,7 +180,7 @@ void TestGameDef::defineSomeNodes()
|
|||
"{default_water.png";
|
||||
f = ContentFeatures();
|
||||
f.name = itemdef.name;
|
||||
f.alpha = 128;
|
||||
f.alpha = ALPHAMODE_BLEND;
|
||||
f.liquid_type = LIQUID_SOURCE;
|
||||
f.liquid_viscosity = 4;
|
||||
f.is_ground_content = true;
|
||||
|
@ -201,7 +201,7 @@ void TestGameDef::defineSomeNodes()
|
|||
"{default_lava.png";
|
||||
f = ContentFeatures();
|
||||
f.name = itemdef.name;
|
||||
f.alpha = 128;
|
||||
f.alpha = ALPHAMODE_OPAQUE;
|
||||
f.liquid_type = LIQUID_SOURCE;
|
||||
f.liquid_viscosity = 7;
|
||||
f.light_source = LIGHT_MAX-1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue