Fix palm leaves z-fighting
parent
74f405676c
commit
b736d80ec1
|
@ -39,11 +39,15 @@ minetest.register_node("lzr_core:shrub_leaves", {
|
|||
is_ground_content = false,
|
||||
})
|
||||
|
||||
|
||||
local lb = 0.499 --leaves border
|
||||
minetest.register_node("lzr_core:bright_palm_leaves", {
|
||||
description = S("Bright Palm Leaves"),
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -lb, -0.5, -lb, lb, 0.5, lb },
|
||||
},
|
||||
tiles = {
|
||||
{name="lzr_core_palm_leaves_top.png",backface_culling = false},
|
||||
{name="blank.png"},
|
||||
|
@ -59,6 +63,10 @@ minetest.register_node("lzr_core:dark_palm_leaves", {
|
|||
description = S("Dark Palm Leaves"),
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { -lb, -0.5, -lb, lb, 0.5, lb },
|
||||
},
|
||||
tiles = {
|
||||
{name="lzr_core_palm_leaves_top.png",backface_culling = false},
|
||||
{name="blank.png"},
|
||||
|
|
Loading…
Reference in New Issue