Moved FinishSurfaces for gltf

This commit is contained in:
Robert Beckebans 2022-06-21 00:20:25 +02:00
parent d87d05e82c
commit 90d329c78b

View file

@ -107,9 +107,6 @@ void idRenderModelGLTF::ProcessNode( gltfNode* modelNode, idMat4 trans, gltfData
{
ProcessNode( nodeList[child], curTrans, data );
}
// derive mikktspace tangents from normals
FinishSurfaces( true );
}
//constructs a renderModel from a gltfScene node found in the "models" scene of the given gltfFile.
@ -172,6 +169,9 @@ void idRenderModelGLTF::InitFromFile( const char* fileName )
return;
}
// derive mikktspace tangents from normals
FinishSurfaces( true );
// it is now available for use
purged = false;