示例#1
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add(ClearFlagsName, ClearFlags);
            node.Add(BackGroundColorName, BackGroundColor.ExportYAML(container));

            // 2018
            node.Add(ProjectionMatrixModeName, (int)ProjectionMatrixMode);
            node.Add(SensorSizeName, SensorSize.ExportYAML(container));
            node.Add(LensShiftName, LensShift.ExportYAML(container));
            node.Add(FocalLengthName, FocalLength);

            node.Add(NormalizedViewPortRectName, NormalizedViewPortRect.ExportYAML(container));
            node.Add(NearClipPlaneName, NearClipPlane);
            node.Add(FarClipPlaneName, FarClipPlane);
            node.Add(FieldOfViewName, FieldOfView);
            node.Add(OrthographicName, Orthographic);
            node.Add(OrthographicSizeName, OrthographicSize);
            node.Add(DepthName, Depth);
            node.Add(CullingMaskName, CullingMask.ExportYAML(container));
            node.Add(RenderingPathName, (int)RenderingPath);
            node.Add(TargetTextureName, TargetTexture.ExportYAML(container));
            node.Add(TargetDisplayName, TargetDisplay);
            node.Add(TargetEyeName, (int)TargetEye);
            node.Add(HDRName, HDR);
            node.Add(AllowMSAAName, AllowMSAA);
            node.Add(AllowDynamicResolutionName, AllowDynamicResolution);
            node.Add(ForceIntoRTName, ForceIntoRT);
            node.Add(OcclusionCullingName, OcclusionCulling);
            node.Add(StereoConvergenceName, StereoConvergence);
            node.Add(StereoSeparationName, StereoSeparation);
            return(node);
        }