/// <summary>
        /// Releases the point lights render textures collectors
        /// </summary>
        private void ReleasePointRenderTexturesCollectors()
        {
            if (_pointLightsShadowMapsCollector != null)
            {
                _pointLightsShadowMapsCollector.Release();
                _pointLightsShadowMapsCollector = null;
            }

            if (_pointLightsCookieMapsCollector != null)
            {
                _pointLightsCookieMapsCollector.Release();
                _pointLightsCookieMapsCollector = null;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Releases all the managed members
        /// </summary>
        internal void Dispose()
        {
            if (_volumesTexture2DMasksArray != null)
            {
                _volumesTexture2DMasksArray.Release();
                _volumesTexture2DMasksArray = null;
            }

            if (_volumesTexture3DMasksAtlas != null)
            {
                _volumesTexture3DMasksAtlas.Release();
                _volumesTexture3DMasksAtlas = null;
            }
        }
        /// <summary>
        /// Releases the directional lights render textures collectors
        /// </summary>
        private void ReleaseDirectionalRenderTexturesCollectors()
        {
            if (_directionalLightsShadowMapsCollector != null)
            {
                _directionalLightsShadowMapsCollector.Release();
                _directionalLightsShadowMapsCollector = null;
            }

            if (_directionalLightsShadowDataCollector != null)
            {
                _directionalLightsShadowDataCollector.Release();
                _directionalLightsShadowDataCollector = null;
            }

            if (_directionalLightsCookieMapsCollector != null)
            {
                _directionalLightsCookieMapsCollector.Release();
                _directionalLightsCookieMapsCollector = null;
            }
        }