mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Fixed missing generation of tangent spaces for glTF files
This commit is contained in:
parent
e3d37473da
commit
5f58f73845
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue