fixed normal calculation

This commit is contained in:
devZoGok
2024-09-08 14:24:17 +03:00
parent 1719cdf98d
commit 63429dacbe
+1 -1
View File
@@ -132,7 +132,7 @@ namespace vb01{
float biTanZ = atof(vertEl->Attribute("bz"));
Vector3 biTan = Vector3(biTanX, biTanY, biTanZ);
normals[i] = tan.cross(biTan);
normals[i] = biTan.cross(tan);
MeshData::Vertex vertex;
vertex.pos = &vertPos[id];