1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-01-07 23:30:17 +01:00

fix https://github.com/mt-mods/homedecor_modpack/issues/88 - improve usage of use_texture_alpha to improve client rendering (#89)

This commit is contained in:
wsor4035 2024-12-28 22:34:54 -05:00 committed by GitHub
parent ecbedd77de
commit f7d5164559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 27 additions and 21 deletions

View File

@ -239,7 +239,6 @@ homedecor.register("toilet_open", {
selection_box = toilet_sbox, selection_box = toilet_sbox,
collision_box = toilet_cbox, collision_box = toilet_cbox,
drop = "homedecor:toilet", drop = "homedecor:toilet",
use_texture_alpha = "blend",
groups = {cracky=3, dig_stone = 2}, groups = {cracky=3, dig_stone = 2},
_sound_def = { _sound_def = {
key = "node_sound_stone_defaults", key = "node_sound_stone_defaults",

View File

@ -19,6 +19,7 @@ local door_list = {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "homedecor_door_open", sound_open = "homedecor_door_open",
sound_close = "homedecor_door_close", sound_close = "homedecor_door_close",
use_texture_alpha = "opaque",
}, },
{ {
name = "exterior_fancy", name = "exterior_fancy",
@ -26,25 +27,29 @@ local door_list = {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "homedecor_door_open", sound_open = "homedecor_door_open",
sound_close = "homedecor_door_close", sound_close = "homedecor_door_close",
mesh = "homedecor_door_fancy" mesh = "homedecor_door_fancy",
use_texture_alpha = "blend",
}, },
{ {
name = "french_oak", name = "french_oak",
description = S("French door, Oak-colored"), description = S("French door, Oak-colored"),
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
mesh = "homedecor_door_french" mesh = "homedecor_door_french",
use_texture_alpha = "blend",
}, },
{ {
name = "french_mahogany", name = "french_mahogany",
description = S("French door, Mahogany-colored"), description = S("French door, Mahogany-colored"),
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
mesh = "homedecor_door_french" mesh = "homedecor_door_french",
use_texture_alpha = "blend",
}, },
{ {
name = "french_white", name = "french_white",
description = S("French door, White"), description = S("French door, White"),
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
mesh = "homedecor_door_french" mesh = "homedecor_door_french",
use_texture_alpha = "blend",
}, },
{ {
name = "basic_panel", name = "basic_panel",
@ -52,6 +57,7 @@ local door_list = {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "homedecor_door_open", sound_open = "homedecor_door_open",
sound_close = "homedecor_door_close", sound_close = "homedecor_door_close",
use_texture_alpha = "opaque",
}, },
{ {
name = "wrought_iron", name = "wrought_iron",
@ -59,7 +65,8 @@ local door_list = {
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
sound_open = "doors_steel_door_open", sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close", sound_close = "doors_steel_door_close",
mesh = "homedecor_door_wrought_iron" mesh = "homedecor_door_wrought_iron",
use_texture_alpha = "clip",
}, },
{ {
name = "carolina", name = "carolina",
@ -67,6 +74,7 @@ local door_list = {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "homedecor_door_open", sound_open = "homedecor_door_open",
sound_close = "homedecor_door_close", sound_close = "homedecor_door_close",
use_texture_alpha = "blend",
}, },
{ {
name = "woodglass", name = "woodglass",
@ -74,19 +82,22 @@ local door_list = {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "homedecor_door_open", sound_open = "homedecor_door_open",
sound_close = "homedecor_door_close", sound_close = "homedecor_door_close",
mesh = "homedecor_door_wood_glass_3" mesh = "homedecor_door_wood_glass_3",
use_texture_alpha = "clip",
}, },
{ {
name = "closet_mahogany", name = "closet_mahogany",
description = S("Mahogany Closet Door"), description = S("Mahogany Closet Door"),
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
mesh = "homedecor_door_closet" mesh = "homedecor_door_closet",
use_texture_alpha = "clip",
}, },
{ {
name = "closet_oak", name = "closet_oak",
description = S("Oak Closet Door"), description = S("Oak Closet Door"),
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
mesh = "homedecor_door_closet" mesh = "homedecor_door_closet",
use_texture_alpha = "clip",
}, },
} }
@ -99,7 +110,7 @@ local function generate_door(def)
local default_settings = { local default_settings = {
tiles = {{ name = "homedecor_door_" .. def.name .. ".png", backface_culling = true }}, tiles = {{ name = "homedecor_door_" .. def.name .. ".png", backface_culling = true }},
inventory_image = "homedecor_door_" .. def.name .. "_inv.png", inventory_image = "homedecor_door_" .. def.name .. "_inv.png",
use_texture_alpha = "blend", use_texture_alpha = def.use_texture_alpha or "blend",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
mesecons = { mesecons = {
effector = { effector = {

View File

@ -488,7 +488,6 @@ for brightness_level = 0, 14 do
description = S("Ground Lantern/Light"), description = S("Ground Lantern/Light"),
mesh = "homedecor_ground_lantern.obj", mesh = "homedecor_ground_lantern.obj",
tiles = { gen_ls_tex_yellow, "homedecor_generic_metal_wrought_iron.png" }, tiles = { gen_ls_tex_yellow, "homedecor_generic_metal_wrought_iron.png" },
use_texture_alpha = "blend",
inventory_image = "homedecor_ground_lantern_inv.png", inventory_image = "homedecor_ground_lantern_inv.png",
wield_image = "homedecor_ground_lantern_inv.png", wield_image = "homedecor_ground_lantern_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1}, groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
@ -515,7 +514,6 @@ for brightness_level = 0, 14 do
description = S("Hanging Lantern/Light"), description = S("Hanging Lantern/Light"),
mesh = "homedecor_hanging_lantern.obj", mesh = "homedecor_hanging_lantern.obj",
tiles = { "homedecor_generic_metal_wrought_iron.png", gen_ls_tex_yellow }, tiles = { "homedecor_generic_metal_wrought_iron.png", gen_ls_tex_yellow },
use_texture_alpha = "blend",
inventory_image = "homedecor_hanging_lantern_inv.png", inventory_image = "homedecor_hanging_lantern_inv.png",
wield_image = "homedecor_hanging_lantern_inv.png", wield_image = "homedecor_hanging_lantern_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1}, groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
@ -951,7 +949,6 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
gen_ls_tex_yellow, gen_ls_tex_yellow,
"homedecor_generic_metal_wrought_iron.png" "homedecor_generic_metal_wrought_iron.png"
}, },
use_texture_alpha = "blend",
inventory_image = "homedecor_wall_lamp_inv.png", inventory_image = "homedecor_wall_lamp_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1}, groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
light_source = onflag and (minetest.LIGHT_MAX - 3) or nil, light_source = onflag and (minetest.LIGHT_MAX - 3) or nil,

View File

@ -159,7 +159,7 @@ homedecor_roofing.register_slope = function(modname, subname, recipeitem, groups
paramtype2 = "facedir", paramtype2 = "facedir",
selection_box = slope_cbox, selection_box = slope_cbox,
collision_box = slope_cbox, collision_box = slope_cbox,
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = groups, groups = groups,
is_ground_content = false, is_ground_content = false,
_mcl_hardness=1.6, _mcl_hardness=1.6,

View File

@ -57,7 +57,7 @@ minetest.register_node(":lrfurn:coffeetable", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
is_ground_content = false, is_ground_content = false,
_mcl_hardness=1.6, _mcl_hardness=1.6,

View File

@ -15,7 +15,7 @@ minetest.register_node(":lrfurn:endtable", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
is_ground_content = false, is_ground_content = false,
_mcl_hardness=1.6, _mcl_hardness=1.6,

View File

@ -34,7 +34,7 @@ for _, t in ipairs(leg_materials) do
inventory_image = "homedecor_table_legs_"..name..".png", inventory_image = "homedecor_table_legs_"..name..".png",
wield_image = "homedecor_table_legs_"..name..".png", wield_image = "homedecor_table_legs_"..name..".png",
walkable = false, walkable = false,
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = {snappy=3, dig_tree=2}, groups = {snappy=3, dig_tree=2},
_sound_def = { _sound_def = {
key = "node_sound_wood_defaults", key = "node_sound_wood_defaults",
@ -79,7 +79,7 @@ for i, mat in ipairs(tabletop_materials) do
'blank.png', 'blank.png',
}, },
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png', wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = { snappy = 3, dig_tree=2 }, groups = { snappy = 3, dig_tree=2 },
_sound_def = { _sound_def = {
key = s, key = s,
@ -117,7 +117,7 @@ for i, mat in ipairs(tabletop_materials) do
'homedecor_'..m..'_table_edges.png', 'homedecor_'..m..'_table_edges.png',
"homedecor_table_legs_"..leg_mat..".png", "homedecor_table_legs_"..leg_mat..".png",
}, },
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = { snappy = 3, dig_tree=2 }, groups = { snappy = 3, dig_tree=2 },
_sound_def = { _sound_def = {
key = s key = s

View File

@ -12,7 +12,7 @@ homedecor.register("window_quartered", {
"homedecor_window_quartered.png", "homedecor_window_quartered.png",
"homedecor_window_quartered.png" "homedecor_window_quartered.png"
}, },
use_texture_alpha = "blend", use_texture_alpha = "clip",
groups = {snappy=3, dig_glass=2}, groups = {snappy=3, dig_glass=2},
_sound_def = { _sound_def = {
key = "node_sound_glass_defaults", key = "node_sound_glass_defaults",

View File

@ -22,7 +22,6 @@ minetest.register_node("lavalamp:lavalamp", {
}, },
}, },
}, },
use_texture_alpha = "blend",
inventory_image = "lavalamp_lamp_inv.png", inventory_image = "lavalamp_lamp_inv.png",
paramtype = "light", paramtype = "light",
paramtype2 = "color", paramtype2 = "color",