| | 613 | |
| | 614 | // Copy the given tangent space details into the pose. |
| | 615 | for (unsigned long MeshNr=0; MeshNr<Meshes.Size(); MeshNr++) |
| | 616 | { |
| | 617 | const MeshT& Mesh =Meshes[MeshNr]; |
| | 618 | MeshInfoT& MeshInfo=m_MeshInfos[MeshNr]; |
| | 619 | |
| | 620 | for (unsigned long TriNr=0; TriNr<Mesh.Triangles.Size(); TriNr++) |
| | 621 | { |
| | 622 | MeshInfo.Triangles[TriNr].Normal = Mesh.Triangles[TriNr].gts_Normal; |
| | 623 | } |
| | 624 | |
| | 625 | for (unsigned long VertexNr=0; VertexNr<Mesh.Vertices.Size(); VertexNr++) |
| | 626 | { |
| | 627 | MeshInfo.Vertices[VertexNr].Pos = Mesh.Vertices[VertexNr].gts_Pos; |
| | 628 | MeshInfo.Vertices[VertexNr].Normal = Mesh.Vertices[VertexNr].gts_Normal; |
| | 629 | MeshInfo.Vertices[VertexNr].Tangent = Mesh.Vertices[VertexNr].gts_Tangent; |
| | 630 | MeshInfo.Vertices[VertexNr].BiNormal = Mesh.Vertices[VertexNr].gts_BiNormal; |
| | 631 | } |
| | 632 | } |
| | 633 | |