Exemple #1
0
        public void Cleanup()
        {
            Reset();

            if (renderingContext != null)
            {
                renderingContext.Cleanup();
                renderingContext = null;
            }
        }
Exemple #2
0
        public void Cleanup()
        {
            CoreUtils.Destroy(m_StandardSkyboxMaterial);
            CoreUtils.Destroy(m_BlitCubemapMaterial);
            CoreUtils.Destroy(m_OpaqueAtmScatteringMaterial);

            m_VisualSky.Cleanup();
            m_PreviewSky.Cleanup();
            m_LightingOverrideSky.Cleanup();

            m_SkyRenderingContext.Cleanup();

#if UNITY_EDITOR
            CoreUtils.Destroy(m_DefaultPreviewSky);

            m_StaticLightingSky.Cleanup();
            m_StaticLightingSkyRenderingContext.Cleanup();

            m_PreviewSkyRenderingContext.Cleanup();
#endif
        }