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