mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-12-05 02:33:49 +01:00
Fix LCD Z-fighting in distant places, large coordinates
Co-authored-by: DS <vorunbekannt75@web.de>
This commit is contained in:
parent
d35f7f12c4
commit
9c2b980938
11
lcd.lua
11
lcd.lua
@ -176,10 +176,13 @@ 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},
|
|
||||||
[3] = {delta = {x = -0.437, y = 0, z = 0}, yaw = math.pi / 2},
|
-- Note: 0.437 is on the surface but we need some space to avoid
|
||||||
[4] = {delta = {x = 0, y = 0, z = 0.437}, yaw = 0},
|
-- z-fighting in distant places (e.g. 30000,10,0)
|
||||||
[5] = {delta = {x = 0, y = 0, z = -0.437}, yaw = math.pi},
|
[2] = {delta = {x = 0.43, y = 0, z = 0}, yaw = math.pi / -2},
|
||||||
|
[3] = {delta = {x = -0.43, y = 0, z = 0}, yaw = math.pi / 2},
|
||||||
|
[4] = {delta = {x = 0, y = 0, z = 0.43}, yaw = 0},
|
||||||
|
[5] = {delta = {x = 0, y = 0, z = -0.43}, yaw = math.pi},
|
||||||
}
|
}
|
||||||
|
|
||||||
local reset_meta = function(pos)
|
local reset_meta = function(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user