Exemplo n.º 1
0
        public void Cleanup()
        {
            CoreUtils.Destroy(m_StandardSkyboxMaterial);
            CoreUtils.Destroy(m_BlitCubemapMaterial);
            CoreUtils.Destroy(m_OpaqueAtmScatteringMaterial);

            RTHandles.Release(m_SkyboxBSDFCubemapIntermediate);
            CoreUtils.Destroy(m_BlackCubemapArray);

            for (int i = 0; i < m_CachedSkyContexts.size; ++i)
            {
                m_CachedSkyContexts[i].Cleanup();
            }

            m_StaticLightingSky.Cleanup();

#if UNITY_EDITOR
            CoreUtils.Destroy(m_DefaultPreviewSky);
#endif
        }
Exemplo n.º 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
        }