From 8381c944f551d1ed96378ac1be82687a001fe499 Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Tue, 28 Feb 2023 11:04:47 +0000 Subject: [PATCH] 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. --- mods/ITEMS/mcl_doors/api_doors.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_doors/api_doors.lua b/mods/ITEMS/mcl_doors/api_doors.lua index 90a580b98..805dfd5dd 100644 --- a/mods/ITEMS/mcl_doors/api_doors.lua +++ b/mods/ITEMS/mcl_doors/api_doors.lua @@ -279,7 +279,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_b_1", { 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, paramtype = "light", paramtype2 = "facedir", @@ -352,7 +352,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_t_1", { 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, paramtype = "light", paramtype2 = "facedir", @@ -425,7 +425,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_b_2", { 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, paramtype = "light", paramtype2 = "facedir", @@ -497,7 +497,7 @@ function mcl_doors:register_door(name, def) minetest.register_node(name.."_t_2", { 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, paramtype = "light", paramtype2 = "facedir",