public TexturedVertex(TexturedVertex other) { this.Position = other.Position; this.Color = other.Color; this.Normal = other.Normal; this.Texcoord = other.Texcoord; }
public static TexturedVertex[] CompileTexturedVerticies(RawModel model) { var combinedVertex = new TexturedVertex[model.TotalVerticies]; int vCount = 0; foreach (var part in model.parts) { for (int i = 0; i < part.VertexCount; ++i) combinedVertex[i + vCount] = part.GetTexturedVertex(i); vCount += part.VertexCount; } return combinedVertex; }
public Vertex(TexturedVertex other) { this.Position = other.Position; this.Color = other.Color; this.Normal = other.Normal; }