diff --git a/src/EngineKit/Graphics/MeshData.cs b/src/EngineKit/Graphics/MeshData.cs index ea10938..8f84e25 100644 --- a/src/EngineKit/Graphics/MeshData.cs +++ b/src/EngineKit/Graphics/MeshData.cs @@ -317,5 +317,8 @@ private void AddVertex( _uvs.Add(uv ?? Vector2.Zero); _realTangents.Add(realTangent ?? Vector4.Zero); _biTangents.Add(Vector3.Zero); + _tangents.Add(realTangent != null + ? new Vector3(realTangent.Value.X, realTangent.Value.Y, realTangent.Value.Z) + : Vector3.Zero); } } \ No newline at end of file