private void OnUnregistered(object sender, CameraRegistrationEvent e)
 {
     if (e.Camera != null)
     {
         GlobalPostProcessorHook.DisableHook(e.Camera);
     }
 }
 private void OnRegistered(object sender, CameraRegistrationEvent e)
 {
     if (_globalEffects.Count > 0)
     {
         GlobalPostProcessorHook.EnableHook(e.Camera);
     }
     else
     {
         _dirty = true;
     }
 }