public Vertex(DatLoader.Entity.SWVertex v) { Origin = v.Origin; Normal = v.Normal; // omitted UV texture coordinates }
public static SWVertex CreateMutable(DatLoader.Entity.SWVertex _vertex) { var vertex = new SWVertex(); vertex.NormalX = _vertex.NormalX; vertex.NormalY = _vertex.NormalY; vertex.NormalZ = _vertex.NormalZ; // ignore texture coordinate u/v vertex.X = _vertex.X; vertex.Y = _vertex.Y; vertex.Z = _vertex.Z; return(vertex); }
public Vertex(DatLoader.Entity.SWVertex v) { Origin = new Vector3(v.X, v.Y, v.Z); Normal = new Vector3(v.NormalX, v.NormalY, v.NormalZ); // omitted UV texture coordinates }