Пример #1
0
        public GaussianBlur(int width, int height)
        {
            horizontal = new Framebuffer(width, height);
            horizontal.AttachColorBuffer(type: PixelType.Float, internalFormat: PixelInternalFormat.Rgba16f);

            vertical = new Framebuffer(width, height);
            vertical.AttachColorBuffer(type: PixelType.Float, internalFormat: PixelInternalFormat.Rgba16f);

            shader = Shaders.BlurShader();
            fr     = FrameRenderer.Instance;
        }