Esempio n. 1
0
 public void LoadBody(byte[] buffer)
 {
     System.IO.BinaryReader br = new System.IO.BinaryReader(new System.IO.MemoryStream(buffer));
     int count = br.ReadInt32();
     lodMats = new Lod[count];
     for (int i = 0; i < count; i++)
     {
         lodMats[i] = new Lod();
         int matc = br.ReadInt32();
         lodMats[i].mats = new SubsetMaterial[matc];
         for (int j = 0; j < matc; j++)
         {
             lodMats[i].mats[j] = new SubsetMaterial();
             lodMats[i].mats[j].DiffuseTextureName = br.ReadPackString();
         }
     }
 }