Пример #1
0
        private GXVertex SMDVertexToGXVertex(SmdVertex v)
        {
            GXVertex o = new GXVertex()
            {
                Pos = new GXVector3(v.p.X, v.p.Y, v.p.Z),
                Nrm = new GXVector3(v.n.X, v.n.Y, v.n.Z),
                TX0 = new GXVector2(v.uv.X, v.uv.Y),
            };

            return(o);
        }
Пример #2
0
        public SmdVertex GXVertexToSMDVertex(GXVertex v)
        {
            SmdVertex smdv = new SmdVertex()
            {
                parent = 0,
                p      = new Vector3(v.Pos.X, v.Pos.Y, v.Pos.Z),
                n      = new Vector3(v.Nrm.X, v.Nrm.Y, v.Nrm.Z),
                uv     = new Vector2(v.TX0.X, v.TX0.Y),
            };

            smdv.bones   = v.N;
            smdv.weights = v.W;
            return(smdv);
        }