Exemplo n.º 1
0
 public override int loadbody(BinaryReader br)
 {
     long pos = br.BaseStream.Position;
     int count = br.ReadInt32();
     lodMats = new List<Lod>();// Lod[count];
     for (int i = 0; i < count; i++)
     {
         Lod l = new Lod();
         lodMats.Add(l);
         int matc = br.ReadInt32();
         lodMats[i].mats = new List<SubsetMaterial>();// SubsetMaterial[br.ReadInt32()];
         for (int j = 0; j < matc; j++)
         {
             SubsetMaterial sm = new SubsetMaterial();
             sm.DiffuseTextureName = br.ReadPackString();
             lodMats[i].mats.Add(sm);
         }
     }
     return Convert.ToInt32(br.BaseStream.Position - pos);
 }
Exemplo n.º 2
0
 public SubsetMaterial Addmat()
 {
     var lod = new SubsetMaterial();
     mats.Add(lod);
     return lod;
 }