예제 #1
0
 public void SetBackground(bool force = false, bool dark = false)
 {
     if (force)
     {
         if (dark)
         {
             Dark.Begin();
         }
         else
         {
             Light.Begin();
         }
     }
     else
     {
         if (Locator.SettingsVM.ApplicationTheme == ApplicationTheme.Dark)
         {
             Dark.Begin();
         }
         else
         {
             Light.Begin();
         }
     }
 }
        public LightingStep BeginLighting()
        {
            Light.Gamma = Gamma;

            Light.Begin(Camera);

            graphics.SetRenderTargets(targets.ColorAccum);
            graphics.Clear(Color.Black);

            BackgroundEffect.View         = View;
            BackgroundEffect.Projection   = Projection;
            BackgroundEffect.DepthTexture = targets.Depth;
            BackgroundEffect.Gamma        = Gamma;

            return(Light);
        }