예제 #1
0
파일: Material.cs 프로젝트: justMaku/W3DT
        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);
        }
예제 #2
0
 public static MaterialTexture Read(FormatBase input)
 {
     return(new MaterialTexture(input.readUInt32(), Colour4.Read(input), input.readUInt32()));
 }