Guest User

Untitled

a guest
Oct 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.         private void ParseVertices()
  2.         {
  3.             MdxVertex[] verts = new MdxVertex[mVertices.Length];
  4.             uint counter = 0;
  5.             foreach (M2Vertex v in mVertices)
  6.             {
  7.                 MdxVertex mv = new MdxVertex()
  8.                 {
  9.                     X = v.x,
  10.                     Y = v.y,
  11.                     Z = v.z,
  12.                     NX = v.nx,
  13.                     NY = v.ny,
  14.                     NZ = v.nz,
  15.                     U = v.u,
  16.                     V = v.v,
  17.                 };
  18.                 verts[counter++] = mv;
  19.             }
  20.             Vertices = verts;
  21.         }
Add Comment
Please, Sign In to add comment