Exemplo n.º 1
0
 public TexturedVertex(TexturedVertex other)
 {
     this.Position = other.Position;
     this.Color = other.Color;
     this.Normal = other.Normal;
     this.Texcoord = other.Texcoord;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public Vertex(TexturedVertex other)
 {
     this.Position = other.Position;
     this.Color = other.Color;
     this.Normal = other.Normal;
 }