public LightBufferRenderer(IGraphicsService graphicsService)
        {
            LightRenderer = new LightRenderer(graphicsService);

            _ssaoFilter = new SsaoFilter(graphicsService)
            {
                // Normally the SsaoFilter applies the occlusion values directly to the
                // source texture. But here the filter should ignore the input image and
                // create grayscale image (white = no occlusion, black = max occlusion).
                CombineWithSource = false,
            };

            _copyFilter = new CopyFilter(graphicsService);
        }
Exemple #2
0
 public SsaoSample(Microsoft.Xna.Framework.Game game)
     : base(game)
 {
     _ssaoFilter = new SsaoFilter(GraphicsService);
     GraphicsScreen.PostProcessors.Add(_ssaoFilter);
 }