Ejemplo n.º 1
0
        public static Material Read(FormatBase input, int index)
        {
            Material temp = new Material();

            temp.index     = index;
            temp.flags     = input.readUInt32();
            temp.shader    = input.readUInt32();
            temp.blendMode = input.readUInt32();

            temp.texture1    = MaterialTexture.Read(input);
            temp.texture2    = new MaterialTexture(input.readUInt32(), Colour4.Read(input), 0);
            temp.terrainType = input.readUInt32();
            temp.texture3    = MaterialTexture.Read(input);

            Stuffer.DescribeStuffing(temp);

            input.skip(4 * 4); // runtime floats
            return(temp);
        }
Ejemplo n.º 2
0
 public static MaterialTexture Read(FormatBase input)
 {
     return(new MaterialTexture(input.readUInt32(), Colour4.Read(input), input.readUInt32()));
 }