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:
parent
caac4a5e8d
commit
8381c944f5
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue