Fixed matrices alignment (cosmetic)
parent
088d58dd63
commit
300f0c61da
40
init.lua
40
init.lua
|
@ -493,46 +493,46 @@ function wesh._init_transforms()
|
||||||
|
|
||||||
-- no rotation
|
-- no rotation
|
||||||
rot[0] = {{ 1, 0, 0},
|
rot[0] = {{ 1, 0, 0},
|
||||||
{ 0, 1, 0},
|
{ 0, 1, 0},
|
||||||
{ 0, 0, 1}}
|
{ 0, 0, 1}}
|
||||||
-- 90 degrees clockwise
|
-- 90 degrees clockwise
|
||||||
rot[1] = {{ 0, 0, 1},
|
rot[1] = {{ 0, 0, 1},
|
||||||
{ 0, 1, 0},
|
{ 0, 1, 0},
|
||||||
{ -1, 0, 0}}
|
{ -1, 0, 0}}
|
||||||
-- 180 degrees
|
-- 180 degrees
|
||||||
rot[2] = {{ -1, 0, 0},
|
rot[2] = {{ -1, 0, 0},
|
||||||
{ 0, 1, 0},
|
{ 0, 1, 0},
|
||||||
{ 0, 0, -1}}
|
{ 0, 0, -1}}
|
||||||
-- 270 degrees clockwise
|
-- 270 degrees clockwise
|
||||||
rot[3] = {{ 0, 0, -1},
|
rot[3] = {{ 0, 0, -1},
|
||||||
{ 0, 1, 0},
|
{ 0, 1, 0},
|
||||||
{ 1, 0, 0}}
|
{ 1, 0, 0}}
|
||||||
|
|
||||||
-- directions
|
-- directions
|
||||||
-- Y+
|
-- Y+
|
||||||
dir[0] = {{ 1, 0, 0},
|
dir[0] = {{ 1, 0, 0},
|
||||||
{ 0, 1, 0},
|
{ 0, 1, 0},
|
||||||
{ 0, 0, 1}}
|
{ 0, 0, 1}}
|
||||||
-- Z+
|
-- Z+
|
||||||
dir[1] = {{ 1, 0, 0},
|
dir[1] = {{ 1, 0, 0},
|
||||||
{ 0, 0, -1},
|
{ 0, 0, -1},
|
||||||
{ 0, 1, 0}}
|
{ 0, 1, 0}}
|
||||||
-- Z-
|
-- Z-
|
||||||
dir[2] = {{ 1, 0, 0},
|
dir[2] = {{ 1, 0, 0},
|
||||||
{ 0, 0, 1},
|
{ 0, 0, 1},
|
||||||
{ 0, -1, 0}}
|
{ 0, -1, 0}}
|
||||||
-- X+
|
-- X+
|
||||||
dir[3] = {{ 0, 1, 0},
|
dir[3] = {{ 0, 1, 0},
|
||||||
{ -1, 0, 0},
|
{ -1, 0, 0},
|
||||||
{ 0, 0, 1}}
|
{ 0, 0, 1}}
|
||||||
-- X-
|
-- X-
|
||||||
dir[4] = {{ 0, -1, 0},
|
dir[4] = {{ 0, -1, 0},
|
||||||
{ 1, 0, 0},
|
{ 1, 0, 0},
|
||||||
{ 0, 0, 1}}
|
{ 0, 0, 1}}
|
||||||
-- Y-
|
-- Y-
|
||||||
dir[5] = {{ -1, 0, 0},
|
dir[5] = {{ -1, 0, 0},
|
||||||
{ 0, -1, 0},
|
{ 0, -1, 0},
|
||||||
{ 0, 0, 1}}
|
{ 0, 0, 1}}
|
||||||
|
|
||||||
wesh.facedir_transform = {}
|
wesh.facedir_transform = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue