示例#1
0
文件: Vertex.cs 项目: hvp/Gemgine
 public TexturedVertex(TexturedVertex other)
 {
     this.Position = other.Position;
     this.Color = other.Color;
     this.Normal = other.Normal;
     this.Texcoord = other.Texcoord;
 }
示例#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;
        }
示例#3
0
文件: Vertex.cs 项目: hvp/Gemgine
 public Vertex(TexturedVertex other)
 {
     this.Position = other.Position;
     this.Color = other.Color;
     this.Normal = other.Normal;
 }