lcd panel: increase the offset of the text plane to the nodebox to avoid z-fighting

This commit is contained in:
DS-Minetest 2019-09-10 16:09:53 +02:00
parent 434010bdd0
commit 99b8d3f646
1 changed files with 5 additions and 5 deletions

10
lcd.lua
View File

@ -108,10 +108,10 @@ local lcds = {
-- on ground
--* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
-- sides
[2] = {delta = {x = 0.437, y = 0, z = 0}, yaw = math.pi / -2},
[3] = {delta = {x = -0.437, y = 0, z = 0}, yaw = math.pi / 2},
[4] = {delta = {x = 0, y = 0, z = 0.437}, yaw = 0},
[5] = {delta = {x = 0, y = 0, z = -0.437}, yaw = math.pi},
[2] = {delta = {x = 0.42, y = 0, z = 0}, yaw = math.pi / -2},
[3] = {delta = {x = -0.42, y = 0, z = 0}, yaw = math.pi / 2},
[4] = {delta = {x = 0, y = 0, z = 0.42}, yaw = 0},
[5] = {delta = {x = 0, y = 0, z = -0.42}, yaw = math.pi},
}
local reset_meta = function(pos)
@ -173,7 +173,7 @@ local prepare_writing = function(pos)
if entity then
set_texture(entity)
rotate_text(pos)
end
end
end
local spawn_entity = function(pos)