lcd panel: increase the offset of the text plane to the nodebox to avoid z-fighting
This commit is contained in:
parent
434010bdd0
commit
99b8d3f646
10
lcd.lua
10
lcd.lua
|
@ -108,10 +108,10 @@ local lcds = {
|
||||||
-- on ground
|
-- on ground
|
||||||
--* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
|
--* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
|
||||||
-- sides
|
-- sides
|
||||||
[2] = {delta = {x = 0.437, y = 0, z = 0}, yaw = math.pi / -2},
|
[2] = {delta = {x = 0.42, y = 0, z = 0}, yaw = math.pi / -2},
|
||||||
[3] = {delta = {x = -0.437, 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.437}, yaw = 0},
|
[4] = {delta = {x = 0, y = 0, z = 0.42}, yaw = 0},
|
||||||
[5] = {delta = {x = 0, y = 0, z = -0.437}, yaw = math.pi},
|
[5] = {delta = {x = 0, y = 0, z = -0.42}, yaw = math.pi},
|
||||||
}
|
}
|
||||||
|
|
||||||
local reset_meta = function(pos)
|
local reset_meta = function(pos)
|
||||||
|
@ -173,7 +173,7 @@ local prepare_writing = function(pos)
|
||||||
if entity then
|
if entity then
|
||||||
set_texture(entity)
|
set_texture(entity)
|
||||||
rotate_text(pos)
|
rotate_text(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local spawn_entity = function(pos)
|
local spawn_entity = function(pos)
|
||||||
|
|
Loading…
Reference in New Issue