public void Write() { Help.IOHelp.WriteVec(Diff); Help.IOHelp.WriteVec(Spec); Help.IOHelp.WriteFloat(Shine); Help.IOHelp.WriteBool(ColorMap != null); if (ColorMap != null) { ColorMap.Write(); } Help.IOHelp.WriteBool(NormalMap != null); if (NormalMap != null) { NormalMap.Write(); } Help.IOHelp.WriteBool(SpecularMap != null); if (SpecularMap != null) { SpecularMap.Write(); } Help.IOHelp.WriteBool(ExtraMap != null); if (ExtraMap != null) { ExtraMap.Write(); } Help.IOHelp.WriteBool(EnvironmentMap != null); if (EnvironmentMap != null) { Help.IOHelp.WriteString(EnvironmentMap.Path); } }
public void Write(AssetWriter writer) { Texture.Write(writer); if (HasNormalMap(writer.Version)) { NormalMap.Write(writer); } TileSize.Write(writer); if (HasTileOffset(writer.Version)) { TileOffset.Write(writer); } if (HasSpecularMetallic(writer.Version)) { SpecularMetallic.Write(writer); } if (HasSmoothness(writer.Version)) { writer.Write(Smoothness); } }