Exemple #1
0
        public void WriteUvData(byte[] data, int i, int uvNum)
        {
            //Do X
            byte[] tempPosData = HalfExtenders.GetBytes(UVs[uvNum].X);
            Array.Copy(tempPosData, 0, data, i, 2);

            //Do Y
            UVs[uvNum].Y = -uvs[uvNum].Y;
            tempPosData  = HalfExtenders.GetBytes(UVs[uvNum].Y);
            Array.Copy(tempPosData, 0, data, i + 2, 2);
        }
Exemple #2
0
        public void WriteUvData(byte[] data, int i, int uvNum)
        {
            //Do X
            byte[] tempPosData = HalfExtenders.GetBytes(UVs[uvNum].X);
            Array.Copy(tempPosData, 0, data, i, 2);

            //Do Y
            UVs[uvNum]  = new Half2(UVs[uvNum].X, (Vortice.Mathematics.Half)(-UVs[uvNum].Y));
            tempPosData = HalfExtenders.GetBytes(UVs[uvNum].Y);
            Array.Copy(tempPosData, 0, data, i + 2, 2);
        }