Ejemplo n.º 1
0
        public override void Use(Texture source, Texture target)
        {
            Sharpscope.Blit(source, tempA);     // downscale original

            RenderShader.Use();
            RenderShader.SetVector2("texelSize", new OpenTK.Vector2(1f / tempB.Width, 1f / tempB.Height));

            RenderShader.SetInt("Horizontal", 1);
            Render(tempA, tempB);
            RenderShader.SetInt("Horizontal", 0);
            Render(tempB, target);
        }
Ejemplo n.º 2
0
 public override void Use(Texture source, Texture target)
 {
     RenderShader.SetInt("Combine", 1);
     Combine.Use(TextureUnit.Texture1);
     Render(source, target);
 }