public void Dispose()
 {
     m_ShadowDataBuffer.Dispose();
     m_DirectionalShadowDataBuffer.Dispose();
     m_Atlas.Release();
     m_CascadeAtlas.Release();
 }
示例#2
0
        public void Dispose()
        {
#if USE_PACKED_SHADOWDATA
            m_PackedShadowBuffer.Dispose();
#else
            m_ShadowDataBuffer.Dispose();
            m_DirectionalShadowDataBuffer.Dispose();
#endif

            m_Atlas.Release();
            m_AreaLightShadowAtlas.Release();
            m_CascadeAtlas.Release();
        }