public void Dispose() { _logger.Information("Disposing objects"); _renderer.Dispose(); _skybox.Dispose(); _world.Dispose(); _context.Dispose(); _worldRenderer.Dispose(); _ndcRenderer.Dispose(); _skyboxRenderer.Dispose(); _fullscreenShader.Dispose(); _backbufferTexture.Dispose(); _postprocessTexture.Dispose(); _postprocessPipeline.Dispose(); }
protected override void Unsubscribed() { _skybox?.Dispose(); _skybox = null; base.Unsubscribed(); }