private void OnUnregistered(object sender, CameraRegistrationEvent e)
 {
     if (e.Camera != null)
     {
         GlobalPostProcessorHook.DisableHook(e.Camera);
     }
 }
        private void DisableGlobalHooks()
        {
            var e = CameraPool.GetEnumerator();

            while (e.MoveNext())
            {
                GlobalPostProcessorHook.DisableHook(e.Current);
            }
            _dirty = false;
        }
 private void OnRegistered(object sender, CameraRegistrationEvent e)
 {
     if (_globalEffects.Count > 0)
     {
         GlobalPostProcessorHook.EnableHook(e.Camera);
     }
     else
     {
         _dirty = true;
     }
 }