예제 #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);
        }
예제 #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(container);
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_ClearFlags", ClearFlags);
            node.Add("m_BackGroundColor", BackGroundColor.ExportYAML(container));
            node.Add("m_NormalizedViewPortRect", NormalizedViewPortRect.ExportYAML(container));
            node.Add("near clip plane", NearClipPlane);
            node.Add("far clip plane", FarClipPlane);
            node.Add("field of view", FieldOfView);
            node.Add("orthographic", Orthographic);
            node.Add("orthographic size", OrthographicSize);
            node.Add("m_Depth", Depth);
            node.Add("m_CullingMask", CullingMask.ExportYAML(container));
            node.Add("m_RenderingPath", (int)RenderingPath);
            node.Add("m_TargetTexture", TargetTexture.ExportYAML(container));
            node.Add("m_TargetDisplay", TargetDisplay);
            node.Add("m_TargetEye", (int)TargetEye);
            node.Add("m_HDR", HDR);
            node.Add("m_AllowMSAA", AllowMSAA);
            node.Add("m_AllowDynamicResolution", AllowDynamicResolution);
            node.Add("m_ForceIntoRT", ForceIntoRT);
            node.Add("m_OcclusionCulling", OcclusionCulling);
            node.Add("m_StereoConvergence", StereoConvergence);
            node.Add("m_StereoSeparation", StereoSeparation);
            return(node);
        }
예제 #3
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(TypeName, (int)Type);
            node.Add(ModeName, (int)Mode);
            node.Add(RefreshModeName, (int)RefreshMode);
            node.Add(TimeSlicingModeName, (int)TimeSlicingMode);
            node.Add(ResolutionName, Resolution);
            node.Add(UpdateFrequencyName, UpdateFrequency);
            node.Add(BoxSizeName, BoxSize.ExportYAML(container));
            node.Add(BoxOffsetName, BoxOffset.ExportYAML(container));
            node.Add(NearClipName, NearClip);
            node.Add(FarClipName, FarClip);
            node.Add(ShadowDistanceName, ShadowDistance);
            node.Add(ClearFlagsName, (uint)ClearFlags);
            node.Add(BackGroundColorName, BackGroundColor.ExportYAML(container));
            node.Add(CullingMaskName, CullingMask.ExportYAML(container));
            node.Add(IntensityMultiplierName, IntensityMultiplier);
            node.Add(BlendDistanceName, BlendDistance);
            node.Add(HDRName, HDR);
            node.Add(BoxProjectionName, BoxProjection);
            node.Add(RenderDynamicObjectsName, RenderDynamicObjects);
            node.Add(UseOcclusionCullingName, UseOcclusionCulling);
            node.Add(ImportanceName, Importance);
            node.Add(CustomBakedTextureName, CustomBakedTexture.ExportYAML(container));
            if (IsReadBakedTexture(container.ExportVersion, container.ExportFlags))
            {
                node.Add(BakedTextureName, BakedTextureTexture.ExportYAML(container));
            }
            return(node);
        }