private void LoadSun() { var camera = new Camera(_projectionMatrix) { ViewPosition = new Vector3(-.0f, .0f, 1.2f) }; _sun = new Sun(); _sun.Create(this, _contentManager, camera); }
protected override void UnloadContent() { base.UnloadContent(); if (_sun != null) { _sun.Dispose(); } _sun = null; if (_postProcessor != null) { _postProcessor.Dispose(); } _postProcessor = null; }