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)); }
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(); }
public PPEffect(PostProcessor processor) { this.processor = processor; }
public GaussianBlurPP(PostProcessor processor, float sigma) : base(processor) { gaussianEffect = processor.Content.Load<Effect>("Effects/GaussianBlur"); Sigma = sigma; }