Fix mesh tangent and bitangent vectors generation with OpenFBX backend by using MikkTSpace

This commit is contained in:
Wojtek Figat
2021-11-11 13:23:30 +01:00
parent ac347f0029
commit 6f16195b08
9 changed files with 2218 additions and 46 deletions

View File

@@ -56,6 +56,13 @@ public:
/// </summary>
Array<Vector3> Tangents;
/// <summary>
/// Bitangents vectors signs (used for bitangent reconstruction). Can be +1 or -1.
/// bitangent = cross(normal, tangent) * sign
/// sign = dot(cross(bitangent, normal), tangent)
/// </summary>
Array<float> BitangentSigns;
/// <summary>
/// Mesh index buffer
/// </summary>