Пример #1
0
 public void Read(FileReader reader)
 {
     Color        = reader.ReadColor8RGBA();
     Unknown1     = reader.ReadUInt16();
     AlphaFlags   = reader.ReadByte();
     NumTevStages = reader.ReadByte();
     Unknown3     = reader.ReadByte();
     Padding      = reader.ReadBytes(23); //padding
     TevStages    = new TevStage[8];
     for (int i = 0; i < 8; i++)
     {
         TevStages[i] = new TevStage(reader);
     }
 }
Пример #2
0
        public Material()
        {
            TevStages    = new TevStage[8];
            Color        = STColor8.White;
            Unknown1     = 0;
            AlphaFlags   = 0;
            NumTevStages = 1;
            Unknown3     = 0;
            Padding      = new byte[23];

            for (int i = 0; i < 8; i++)
            {
                TevStages[i] = new TevStage();
            }
        }