add null normal support in bme. fix rail cret draw()

This commit is contained in:
2024-01-08 10:28:56 +08:00
parent f9502fe2d4
commit 31aa5c3127
6 changed files with 168 additions and 138 deletions

View File

@ -68,12 +68,7 @@
"(1, 1)",
"(0, 1)"
],
"normals": [
"(0, 0, 1)",
"(0, 0, 1)",
"(0, 0, 1)",
"(0, 0, 1)"
]
"normals": null
},
{
"skip": "(not face[1]) or height == 0.0",
@ -85,12 +80,7 @@
"(1, 1)",
"(0, 1)"
],
"normals": [
"(0, 0, -1)",
"(0, 0, -1)",
"(0, 0, -1)",
"(0, 0, -1)"
]
"normals": null
},
{
"skip": "(not face[2]) or height == 0.0",
@ -102,12 +92,7 @@
"(uv_height, 1)",
"(0, 1)"
],
"normals": [
"(-1, 0, 0)",
"(-1, 0, 0)",
"(-1, 0, 0)",
"(-1, 0, 0)"
]
"normals": null
},
{
"skip": "(not face[3]) or height == 0.0",
@ -119,12 +104,7 @@
"(uv_height, 1)",
"(0, 1)"
],
"normals": [
"(1, 0, 0)",
"(1, 0, 0)",
"(1, 0, 0)",
"(1, 0, 0)"
]
"normals": null
},
{
"skip": "(not face[4]) or height == 0.0",
@ -136,12 +116,7 @@
"(uv_height, 1)",
"(0, 1)"
],
"normals": [
"(0, -1, 0)",
"(0, -1, 0)",
"(0, -1, 0)",
"(0, -1, 0)"
]
"normals": null
},
{
"skip": "(not face[5]) or height == 0.0",
@ -153,12 +128,7 @@
"(uv_height, 1)",
"(0, 1)"
],
"normals": [
"(0, 1, 0)",
"(0, 1, 0)",
"(0, 1, 0)",
"(0, 1, 0)"
]
"normals": null
}
],
"instances": []