public TexturedVertex(Vertex other) { this.Position = other.Position; this.Color = other.Color; this.Normal = other.Normal; this.Texcoord = Vector2.Zero; }
public static Vertex[] CompileVerticies(RawModel model) { var combinedVertex = new Vertex[model.TotalVerticies]; int vCount = 0; foreach (var part in model.parts) { for (int i = 0; i < part.verticies.Length; ++i) combinedVertex[i + vCount] = part.GetVertex(i); vCount += part.VertexCount; } return combinedVertex; }
public Vertex(Vertex other) { this.Position = other.Position; this.Color = other.Color; this.Normal = other.Normal; }
public static Vertex[] GetVerticies(Mesh mesh, int startIndex, int Length) { var r = new Vertex[Length]; for (int i = 0; i < Length; ++i) r[i] = mesh.verticies[i + startIndex]; return r; }