Exemple #1
0
        private DensityVolumeManager()
        {
            volumes = new List <DensityVolume>();

            volumeAtlas = new Texture3DAtlas(TextureFormat.Alpha8, volumeTextureSize);

            volumeAtlas.OnAtlasUpdated += AtlasUpdated;
        }
 // Note that this function will not release the manager itself as it have to live outside of HDRP to handle density volume components
 internal void ReleaseAtlas()
 {
     // Release the atlas so next time the manager is used, it is reallocated with new HDRP settings.
     if (m_VolumeAtlas != null)
     {
         volumeAtlas.Release();
         m_VolumeAtlas = null;
     }
 }