Esempio n. 1
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            DiffuseTexture.Read(reader);
            NormalMapTexture.Read(reader);
            MaskMapTexture.Read(reader);
            TileSize.Read(reader);
            TileOffset.Read(reader);
            Specular.Read(reader);
            Metallic    = reader.ReadSingle();
            Smoothness  = reader.ReadSingle();
            NormalScale = reader.ReadSingle();
            DiffuseRemapMin.Read(reader);
            DiffuseRemapMax.Read(reader);
            MaskMapRemapMin.Read(reader);
            MaskMapRemapMax.Read(reader);
        }
Esempio n. 2
0
 public void Read(AssetReader reader)
 {
     Texture.Read(reader);
     if (IsReadNormalMap(reader.Version))
     {
         NormalMap.Read(reader);
     }
     TileSize.Read(reader);
     if (IsReadTileOffset(reader.Version))
     {
         TileOffset.Read(reader);
     }
     if (IsReadSpecularMetallic(reader.Version))
     {
         SpecularMetallic.Read(reader);
     }
     if (IsReadSmoothness(reader.Version))
     {
         Smoothness = reader.ReadSingle();
     }
 }
Esempio n. 3
0
 public void Read(AssetStream stream)
 {
     Texture.Read(stream);
     if (IsReadNormalMap(stream.Version))
     {
         NormalMap.Read(stream);
     }
     TileSize.Read(stream);
     if (IsReadTileOffset(stream.Version))
     {
         TileOffset.Read(stream);
     }
     if (IsReadSpecularMetallic(stream.Version))
     {
         SpecularMetallic.Read(stream);
     }
     if (IsReadSmoothness(stream.Version))
     {
         Smoothness = stream.ReadSingle();
     }
 }