Exemple #1
0
 /// <summary>
 /// Calls <see cref="Asset.ReleaseReference"/> for all contained <see cref="XTexture"/>s.
 /// </summary>
 public void ReleaseReference()
 {
     if (DiffuseMaps != null)
     {
         foreach (var texture in DiffuseMaps.WhereNotNull())
         {
             texture.ReleaseReference();
         }
     }
     NormalMap?.ReleaseReference();
     HeightMap?.ReleaseReference();
     SpecularMap?.ReleaseReference();
     EmissiveMap?.ReleaseReference();
 }