Backface cull the new doors

I have figured out how to finally backface cull the doors, and I can't believe that it was this easy the whole time.
This commit is contained in:
FossFanatic 2023-02-28 11:04:47 +00:00
parent caac4a5e8d
commit 8381c944f5
1 changed files with 4 additions and 4 deletions

View File

@ -279,7 +279,7 @@ function mcl_doors:register_door(name, def)
minetest.register_node(name.."_b_1", { minetest.register_node(name.."_b_1", {
mesh = "mcl_doors_door_bottom_closed.obj", mesh = "mcl_doors_door_bottom_closed.obj",
tiles = {tb}, tiles = {{name = tb, backface_culling = true}},
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -352,7 +352,7 @@ function mcl_doors:register_door(name, def)
minetest.register_node(name.."_t_1", { minetest.register_node(name.."_t_1", {
mesh = "mcl_doors_door_top_closed.obj", mesh = "mcl_doors_door_top_closed.obj",
tiles = {tt}, tiles = {{name = tt, backface_culling = true}},
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -425,7 +425,7 @@ function mcl_doors:register_door(name, def)
minetest.register_node(name.."_b_2", { minetest.register_node(name.."_b_2", {
mesh = "mcl_doors_door_bottom_open.obj", mesh = "mcl_doors_door_bottom_open.obj",
tiles = {tb}, tiles = {{name = tb, backface_culling = true}},
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
@ -497,7 +497,7 @@ function mcl_doors:register_door(name, def)
minetest.register_node(name.."_t_2", { minetest.register_node(name.."_t_2", {
mesh = "mcl_doors_door_top_open.obj", mesh = "mcl_doors_door_top_open.obj",
tiles = {tt}, tiles = {{name = tt, backface_culling = true}},
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true, use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",