Fix front/back inconsistency of door
This commit is contained in:
parent
446f7d9158
commit
8bc6f4dbb6
@ -17,7 +17,7 @@ local S = minetest.get_translator("lzr_doors")
|
||||
|
||||
lzr_panes.register_pane("lzr_doors:door_wood_frame_frame_top", {
|
||||
description = S("Top Wood Frame Door Segment"),
|
||||
textures = {"lzr_doors_door_wood_frame_top.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png"},
|
||||
textures = {"lzr_doors_door_wood_frame_top.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_top.png^[transformFX"},
|
||||
inventory_image = "lzr_doors_door_wood_frame_top.png",
|
||||
wield_image = "lzr_doors_door_wood_frame_top.png",
|
||||
sounds = lzr_sounds.node_sound_wood_defaults(),
|
||||
@ -25,7 +25,7 @@ lzr_panes.register_pane("lzr_doors:door_wood_frame_frame_top", {
|
||||
})
|
||||
lzr_panes.register_pane("lzr_doors:door_wood_frame_frame_bottom", {
|
||||
description = S("Bottom Wooden Frame Door Segment"),
|
||||
textures = {"lzr_doors_door_wood_frame_bottom.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png"},
|
||||
textures = {"lzr_doors_door_wood_frame_bottom.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_bottom.png^[transformFX"},
|
||||
inventory_image = "lzr_doors_door_wood_frame_bottom.png",
|
||||
wield_image = "lzr_doors_door_wood_frame_bottom.png",
|
||||
sounds = lzr_sounds.node_sound_wood_defaults(),
|
||||
|
@ -12,6 +12,11 @@ function lzr_panes.register_pane(basename, def)
|
||||
groups.laser_block = 1
|
||||
groups.rotatable = 3
|
||||
|
||||
local front = def.textures[1]
|
||||
local leftright = def.textures[2]
|
||||
local topbottom = def.textures[3]
|
||||
local back = def.textures[4] or front
|
||||
|
||||
lzr_laser.register_element(basename .. "_flat", {
|
||||
description = def.description,
|
||||
drawtype = "mesh",
|
||||
@ -25,15 +30,17 @@ function lzr_panes.register_pane(basename, def)
|
||||
__mesh_off = "lzr_panes_pane_on.obj",
|
||||
__mesh_on = "lzr_panes_pane_on.obj",
|
||||
__tiles_off = {
|
||||
{ name = def.textures[3], backface_culling = true },
|
||||
{ name = def.textures[2], backface_culling = true },
|
||||
{ name = def.textures[1], backface_culling = true },
|
||||
{ name = topbottom, backface_culling = true },
|
||||
{ name = leftright, backface_culling = true },
|
||||
{ name = front, backface_culling = true },
|
||||
{ name = back, backface_culling = true },
|
||||
"blank.png", -- no laser
|
||||
},
|
||||
__tiles_on = {
|
||||
{ name = def.textures[3], backface_culling = true }, -- top+bottom sides
|
||||
{ name = def.textures[2], backface_culling = true }, -- left+right sides
|
||||
{ name = def.textures[1], backface_culling = true }, -- front+back
|
||||
{ name = topbottom, backface_culling = true },
|
||||
{ name = leftright, backface_culling = true },
|
||||
{ name = front, backface_culling = true },
|
||||
{ name = back, backface_culling = true },
|
||||
lzr_laser.LASER_TILE,
|
||||
},
|
||||
__light_source_on = lzr_globals.LASER_GLOW,
|
||||
|
Binary file not shown.
@ -57,10 +57,12 @@ g chest_leftright
|
||||
usemtl leftright
|
||||
f 2/1/1 6/2/1 5/3/1 1/4/1
|
||||
f 7/4/2 8/1/2 4/2/2 3/3/2
|
||||
g chest_frontback
|
||||
usemtl frontback
|
||||
f 5/5/3 6/6/3 8/7/3 7/8/3
|
||||
g chest_front
|
||||
usemtl front
|
||||
f 3/9/4 4/10/4 2/11/4 1/12/4
|
||||
g chest_back
|
||||
usemtl back
|
||||
f 5/5/3 6/6/3 8/7/3 7/8/3
|
||||
g chest_laser
|
||||
usemtl laser
|
||||
f 12/21/2 10/22/2 9/23/2 11/24/2
|
||||
|
Loading…
x
Reference in New Issue
Block a user