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(); } }
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(); } }