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); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add(DiffuseTextureName, DiffuseTexture.ExportYAML(container)); node.Add(NormalMapTextureName, NormalMapTexture.ExportYAML(container)); node.Add(MaskMapTextureName, MaskMapTexture.ExportYAML(container)); node.Add(TileSizeName, TileSize.ExportYAML(container)); node.Add(TileOffsetName, TileOffset.ExportYAML(container)); node.Add(SpecularName, Specular.ExportYAML(container)); node.Add(MetallicName, Metallic); node.Add(SmoothnessName, Smoothness); node.Add(NormalScaleName, NormalScale); node.Add(DiffuseRemapMinName, DiffuseRemapMin.ExportYAML(container)); node.Add(DiffuseRemapMaxName, DiffuseRemapMax.ExportYAML(container)); node.Add(MaskMapRemapMinName, MaskMapRemapMin.ExportYAML(container)); node.Add(MaskMapRemapMaxName, MaskMapRemapMax.ExportYAML(container)); return(node); }