1
0
zrcadlo https://github.com/luanti-org/luanti.git synchronizováno 2025-12-12 18:25:26 +01:00

Respect node alpha node for inventory drawing (#16556)

Tento commit je obsažen v:
sfan5
2025-10-11 19:37:30 +02:00
odevzdal GitHub
rodič a141f8478b
revize c2e2b97944
4 změnil soubory, kde provedl 114 přidání a 64 odebrání

Zobrazit soubor

@@ -2,29 +2,22 @@
local S = core.get_translator("testnodes")
-- Complex mesh
core.register_node("testnodes:performance_mesh_clip", {
description = S("Performance Test Node") .. "\n" .. S("Marble with 'clip' transparency"),
drawtype = "mesh",
mesh = "testnodes_marble_glass.obj",
tiles = {"testnodes_marble_glass.png"},
paramtype = "light",
use_texture_alpha = "clip",
for use_texture_alpha, description in pairs({
opaque = S("Marble with 'opaque' transparency"),
clip = S("Marble with 'clip' transparency"),
blend = S("Marble with 'blend' transparency"),
}) do
core.register_node("testnodes:performance_mesh_" .. use_texture_alpha, {
description = S("Performance Test Node") .. "\n" .. description,
drawtype = "mesh",
mesh = "testnodes_marble_glass.obj",
tiles = {"testnodes_marble_glass.png"},
paramtype = "light",
use_texture_alpha = use_texture_alpha,
groups = {dig_immediate=3},
})
-- Complex mesh, alpha blending
core.register_node("testnodes:performance_mesh_blend", {
description = S("Performance Test Node") .. "\n" .. S("Marble with 'blend' transparency"),
drawtype = "mesh",
mesh = "testnodes_marble_glass.obj",
tiles = {"testnodes_marble_glass.png"},
paramtype = "light",
use_texture_alpha = "blend",
groups = {dig_immediate=3},
})
groups = {dig_immediate=3},
})
end
-- Overlay
core.register_node("testnodes:performance_overlay_clip", {