Hopefully finally fixed normals for good
parent
49df800774
commit
b7acb150b8
12
init.lua
12
init.lua
|
@ -126,12 +126,12 @@ function wesh._init_geometry()
|
||||||
|
|
||||||
-- vertices refer to the above cube_vertices table
|
-- vertices refer to the above cube_vertices table
|
||||||
wesh.face_construction = {
|
wesh.face_construction = {
|
||||||
bottom = { vertices = { 1, 2, 3, 4}, normal = 1 },
|
bottom = { vertices = { 4, 3, 2, 1 }, normal = 1 },
|
||||||
top = { vertices = { 5, 6, 7, 8}, normal = 2 },
|
top = { vertices = { 8, 7, 6, 5 }, normal = 2 },
|
||||||
back = { vertices = { 1, 5, 8, 2}, normal = 3 },
|
back = { vertices = { 2, 8, 5, 1 }, normal = 3 },
|
||||||
front = { vertices = { 3, 7, 6, 4}, normal = 4 },
|
front = { vertices = { 4, 6, 7, 3 }, normal = 4 },
|
||||||
left = { vertices = { 5, 1, 4, 6}, normal = 5 },
|
left = { vertices = { 6, 4, 1, 5 }, normal = 5 },
|
||||||
right = { vertices = { 2, 8, 7, 3}, normal = 6 },
|
right = { vertices = { 3, 7, 8, 2 }, normal = 6 },
|
||||||
}
|
}
|
||||||
|
|
||||||
wesh.face_normals = {
|
wesh.face_normals = {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 216 KiB |
Binary file not shown.
Before Width: | Height: | Size: 326 KiB After Width: | Height: | Size: 357 KiB |
Loading…
Reference in New Issue