Fix avatar base body polygon winding order to prevent backface culling transparency
checkpoint / checkpoint (push) Successful in 5m56s

This commit is contained in:
2026-09-17 17:22:40 +00:00
parent 50598a0dcb
commit ea6948a9ba
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -233,7 +233,7 @@ func _append_box(verts: PackedVector3Array, normals: PackedVector3Array,
for f in faces: for f in faces:
var q: Array[Vector3] = [c[f[0]], c[f[1]], c[f[2]], c[f[3]]] var q: Array[Vector3] = [c[f[0]], c[f[1]], c[f[2]], c[f[3]]]
var n: Vector3 = (q[1] - q[0]).cross(q[2] - q[0]).normalized() var n: Vector3 = (q[1] - q[0]).cross(q[2] - q[0]).normalized()
for tri in [[0, 1, 2], [0, 2, 3]]: for tri in [[0, 2, 1], [0, 3, 2]]:
for vi in tri: for vi in tri:
verts.append(q[vi]) verts.append(q[vi])
normals.append(n) normals.append(n)