Example #1
0
        public Profile Snapshot()
        {
            var profile = SavePostProcessingProfile();

            //if (Camera.main.actualRenderingPath == RenderingPath.DeferredShading)
            //{
            profile.deferred             = true;
            profile.SkinSettings         = deferredShading.SSSSS.SkinSettings;
            profile.TransmissionSettings = deferredShading.SSSSS.TransmissionSettings;
            DeferredShadingUtils.GetTessellation(out profile.phong, out profile.edgeLength);
            //}
            if (selectedCubemap == 0)
            {
                ProceduralSkybox.SaveSkyboxParams();
                profile.selectedCubemap = CubemapFileNames[selectedCubemap];
            }
            else if (selectedCubemap > 0)
            {
                Skybox.SaveSkyboxParams();
                profile.selectedCubemap = CubemapFileNames[selectedCubemap];
            }
            profile.ProceduralSkyboxParams = ProceduralSkybox.skyboxParams;
            profile.SkyboxParams           = Skybox.skyboxParams;
            if (selectedScene >= 0)
            {
                profile.selectedScene        = SceneFileNames[selectedScene];
                profile.selectedSceneVariant = SceneVariant;
            }
            return(profile);
        }