more fixes

test vigourously
This commit is contained in:
marauder2k7 2026-06-21 21:08:48 +01:00
parent f59a640857
commit 4f7b275266
5 changed files with 92 additions and 39 deletions

View file

@ -123,6 +123,10 @@ void AssimpAppMesh::lockMesh(F32 t, const MatrixF& objOffset)
bool flipNormals = ColladaUtils::getOptions().invertNormals;
MatrixF normalMat(objOffset);
normalMat.inverse();
normalMat.transpose();
bool noUVFound = false;
for (U32 i = 0; i < mMeshData->mNumVertices; i++)
{
@ -144,6 +148,10 @@ void AssimpAppMesh::lockMesh(F32 t, const MatrixF& objOffset)
objOffset.mulP(tmpVert);
normalMat.mulV(tmpNormal);
if (mMeshData->HasNormals())
tmpNormal.normalize();
points.push_back(tmpVert);
if (mMeshData->HasTextureCoords(0))