Skip to content

Commit

Permalink
Add tangents
Browse files Browse the repository at this point in the history
  • Loading branch information
deccer committed Oct 30, 2022
1 parent 3e1b02b commit 058cdc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EngineKit/Graphics/MeshData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 058cdc1

Please sign in to comment.