Fixed missing generation of tangent spaces for glTF files

This commit is contained in:
Robert Beckebans 2022-06-20 23:57:13 +02:00
parent e3d37473da
commit 5f58f73845

View file

@ -480,6 +480,9 @@ 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.