mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Moved FinishSurfaces for gltf
This commit is contained in:
parent
d87d05e82c
commit
90d329c78b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue