public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("m_Resolution", Resolution); node.Add("m_BakeResolution", BakeResolution); node.Add("m_TextureWidth", TextureWidth); node.Add("m_TextureHeight", TextureHeight); node.Add("m_AO", AO); node.Add("m_AOMaxDistance", AOMaxDistance); node.Add("m_CompAOExponent", CompAOExponent); node.Add("m_CompAOExponentDirect", CompAOExponentDirect); node.Add("m_Padding", Padding); node.Add("m_LightmapParameters", LightmapParameters.ExportYAML(container)); node.Add("m_LightmapsBakeMode", LightmapsBakeMode); node.Add("m_TextureCompression", TextureCompression); node.Add("m_FinalGather", FinalGather); node.Add("m_FinalGatherFiltering", FinalGatherFiltering); node.Add("m_FinalGatherRayCount", FinalGatherRayCount); node.Add("m_ReflectionCompression", ReflectionCompression); node.Add("m_MixedBakeMode", MixedBakeMode); node.Add("m_BakeBackend", BakeBackend); node.Add("m_PVRSampling", PVRSampling); node.Add("m_PVRDirectSampleCount", PVRDirectSampleCount); node.Add("m_PVRSampleCount", PVRSampleCount); node.Add("m_PVRBounces", PVRBounces); node.Add("m_PVRFilterTypeDirect", PVRFilterTypeDirect); node.Add("m_PVRFilterTypeIndirect", PVRFilterTypeIndirect); node.Add("m_PVRFilterTypeAO", PVRFilterTypeAO); node.Add("m_PVRFilteringMode", PVRFilteringMode); node.Add("m_PVRCulling", PVRCulling); node.Add("m_PVRFilteringGaussRadiusDirect", PVRFilteringGaussRadiusDirect); node.Add("m_PVRFilteringGaussRadiusIndirect", PVRFilteringGaussRadiusIndirect); node.Add("m_PVRFilteringGaussRadiusAO", PVRFilteringGaussRadiusAO); node.Add("m_PVRFilteringAtrousPositionSigmaDirect", PVRFilteringAtrousPositionSigmaDirect); node.Add("m_PVRFilteringAtrousPositionSigmaIndirect", PVRFilteringAtrousPositionSigmaIndirect); node.Add("m_PVRFilteringAtrousPositionSigmaAO", PVRFilteringAtrousPositionSigmaAO); node.Add("m_ShowResolutionOverlay", ShowResolutionOverlay); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion)); node.Add(ResolutionName, Resolution); node.Add(BakeResolutionName, BakeResolution); if (IsReadAtlasSize(container.Version)) { node.Add(AtlasSizeName, AtlasSize); } else { node.Add(TextureWidthName, TextureWidth); node.Add(TextureHeightName, TextureHeight); } node.Add(AOName, AO); node.Add(AOMaxDistanceName, AOMaxDistance); node.Add(CompAOExponentName, CompAOExponent); node.Add(CompAOExponentDirectName, CompAOExponentDirect); if (IsReadExtractAmbientOcclusion(container.ExportVersion)) { node.Add(ExtractAmbientOcclusionName, ExtractAmbientOcclusion); } node.Add(PaddingName, Padding); node.Add(LightmapParametersName, LightmapParameters.ExportYAML(container)); node.Add(LightmapsBakeModeName, (int)LightmapsBakeMode); node.Add(TextureCompressionName, TextureCompression); node.Add(FinalGatherName, FinalGather); node.Add(FinalGatherFilteringName, FinalGatherFiltering); node.Add(FinalGatherRayCountName, FinalGatherRayCount); node.Add(ReflectionCompressionName, (int)ReflectionCompression); node.Add(MixedBakeModeName, (int)MixedBakeMode); node.Add(BakeBackendName, (int)BakeBackend); node.Add(PVRSamplingName, (int)PVRSampling); node.Add(PVRDirectSampleCountName, PVRDirectSampleCount); node.Add(PVRSampleCountName, PVRSampleCount); node.Add(PVRBouncesName, PVRBounces); if (IsReadPVREnvironmentSampleCount(container.ExportVersion)) { node.Add(PVREnvironmentSampleCountName, GetPVREnvironmentSampleCount(container.Version)); node.Add(PVREnvironmentReferencePointCountName, GetPVREnvironmentReferencePointCount(container.Version)); } node.Add(PVRFilteringModeName, (int)GetPVRFilteringMode(container.Version)); if (IsReadPVREnvironmentSampleCount(container.ExportVersion)) { node.Add(PVRDenoiserTypeDirectName, (int)GetPVRDenoiserTypeDirect(container.Version)); node.Add(PVRDenoiserTypeIndirectName, (int)GetPVRDenoiserTypeIndirect(container.Version)); node.Add(PVRDenoiserTypeAOName, (int)GetPVRDenoiserTypeAO(container.Version)); } node.Add(PVRFilterTypeDirectName, (int)GetPVRFilterTypeDirect(container.Version)); node.Add(PVRFilterTypeIndirectName, (int)PVRFilterTypeIndirect); node.Add(PVRFilterTypeAOName, (int)GetPVRFilterTypeAO(container.Version)); if (IsReadPVREnvironmentMIS(container.ExportVersion)) { node.Add(PVREnvironmentMISName, GetPVREnvironmentMIS(container.Version)); } node.Add(PVRCullingName, PVRCulling); node.Add(PVRFilteringGaussRadiusDirectName, GetPVRFilteringGaussRadiusDirect(container.Version)); node.Add(PVRFilteringGaussRadiusIndirectName, GetPVRFilteringGaussRadiusIndirect(container.Version)); node.Add(PVRFilteringGaussRadiusAOName, GetPVRFilteringGaussRadiusAO(container.Version)); node.Add(PVRFilteringAtrousPositionSigmaDirectName, PVRFilteringAtrousPositionSigmaDirect); node.Add(PVRFilteringAtrousPositionSigmaIndirectName, PVRFilteringAtrousPositionSigmaIndirect); node.Add(PVRFilteringAtrousPositionSigmaAOName, PVRFilteringAtrousPositionSigmaAO); if (IsReadShowResolutionOverlay(container.ExportVersion)) { node.Add(ShowResolutionOverlayName, ShowResolutionOverlay); } if (IsReadExportTrainingData(container.ExportVersion)) { node.Add(ExportTrainingDataName, ExportTrainingData); } if (IsReadTrainingDataDestination(container.ExportVersion)) { node.Add(TrainingDataDestinationName, GetTrainingDataDestination(container.Version)); } return(node); }