Exemple #1
0
 /// <summary>
 /// Releases the occlusion texture buffer
 /// </summary>
 public void ReleaseOcclusionTextureBuffer()
 {
     if (_occlusionTexture != null)
     {
         _occlusionTexture.Release();
         _occlusionTexture = null;
     }
 }
Exemple #2
0
 /// <summary>
 /// Releases the occlusion texture buffer
 /// </summary>
 public void ReleaseSliceTextureBuffer()
 {
     if (_sliceTexture != null)
     {
         _sliceTexture.Release();
         _sliceTexture = null;
     }
 }
Exemple #3
0
        /// <summary>
        /// Releases the volume texture buffers
        /// </summary>
        public void ReleaseVolumeTextureBuffers()
        {
            if (_dataVolumeTexture != null)
            {
                _dataVolumeTexture.Release();
                _dataVolumeTexture = null;
            }

            if (_fogVolumeTexture != null)
            {
                _fogVolumeTexture.Release();
                _fogVolumeTexture.Destroy();
            }
        }