Ejemplo n.º 1
0
        public Vertex(DatLoader.Entity.SWVertex v)
        {
            Origin = v.Origin;
            Normal = v.Normal;

            // omitted UV texture coordinates
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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
 }