Esempio n. 1
0
        public void Draw(ITexture2D dephtTexture, ITexture2D image)
        {
            _ssao.Draw(dephtTexture);
            _blur.Draw(_ssao.Output);

            _outputSurface.Activate();

            GL.Clear(ClearBufferMask.ColorBufferBit);

            _shader.Activate();

            _shader.ActivateTexture("saturation", 0, _blur.Output);
            _shader.ActivateTexture("image", 1, image);

            GL.DrawArrays(PrimitiveType.Quads, 0, 4);

            _shader.DeactivateTexture(1, image);
            _shader.DeactivateTexture(0, _blur.Output);

            _shader.Deactivate();

            _outputSurface.Deactivate();
        }
Esempio n. 2
0
 public void Draw(ITexture2D inputTexture)
 {
     _extract.Draw(inputTexture);
     _blur.Draw(_extract.Output);
     _add.Draw(inputTexture, _blur.Output);
 }