Example #1
0
 public NegatizeEffect(PostProcessor processor)
     : base(processor)
 {
     negatizeEffect = processor.Content.Load<Effect>("Effects/Negatize");
     negatizeEffect.Parameters["halfPixel"].SetValue(new Vector2(0.5f / (float)processor.Device.PresentationParameters.BackBufferWidth,
                                                     0.5f / (float)processor.Device.PresentationParameters.BackBufferHeight));
 }
Example #2
0
        public Renderer(ContentManager content, GraphicsDevice device, SpriteBatch batch)
        {
            this.content = content;
            this.device = device;
            this.spriteBatch = batch;

            CreateRenderTargets();

            models = new List<Model>();
            postProcessor = new PostProcessor(content, device, batch);

            drawNormalsEffect = content.Load<Effect>("Effects/RenderNormals");
            renderGBufferEffect = content.Load<Effect>("Effects/RenderGBuffer");
            clearGBufferEffect = content.Load<Effect>("Effects/ClearGBuffer");
            ssaoEffect = content.Load<Effect>("Effects/SSAO");

            SetupSSAOEffect();
            SetupSSAOEffect();
        }
Example #3
0
 public PPEffect(PostProcessor processor)
 {
     this.processor = processor;
 }
Example #4
0
 public GaussianBlurPP(PostProcessor processor, float sigma)
     : base(processor)
 {
     gaussianEffect = processor.Content.Load<Effect>("Effects/GaussianBlur");
     Sigma = sigma;
 }