Fix palm leaves z-fighting

master
Wuzzy 2022-01-20 14:50:56 +01:00
parent 74f405676c
commit b736d80ec1
1 changed files with 9 additions and 1 deletions

View File

@ -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"},