public void Blur()
        {
            GL.Disable(EnableCap.Blend);
            GL.Viewport(0, 0, size, size);
            GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, this.tempRenderTarget);

            blurHSurface.Render();

            GL.BindFramebuffer(FramebufferTarget.DrawFramebuffer, this.renderTarget);

            blurVSurface.Render();
        }
Exemple #2
0
        private void compositeTo(RenderTarget target)
        {
            renderTo(target, new ScreenCoords(viewport.Width, viewport.Height));

            compositeSurface.Render();
        }