예제 #1
0
        protected override void Draw(GameTime gameTime)
        {
            SpriteRenderer.Clear();

            PostProcessor postprocessor = PostProcessor.GetInstance(device);

            device.SetRenderTargets(postprocessor.result_rt);

            device.Clear(CLEAR_COLOR);
            device.SamplerStates[0] = SamplerState.LinearWrap;
            //device.SamplerStates[0] = SamplerState.PointClamp;
            device.DepthStencilState = DepthStencilState.Default;
            device.BlendState        = BlendState.AlphaBlend;

            screenmanager.Draw(device);

            postprocessor.Bloom(postprocessor.result_rt, null, 0.25f, 1, 2 * brightness, 0.5f, 0.5f);
        }