mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 05:04:34 +00:00
more fixes
test vigourously
This commit is contained in:
parent
f59a640857
commit
4f7b275266
5 changed files with 92 additions and 39 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue