Пример #1
0
 public override void Use(Texture source, Texture target)
 {
     RenderShader.SetVector3("Color", Color);
     RenderShader.SetFloat("MaxDist", AlphaLength);
     RenderShader.SetFloat("MaxAlpha", MaxAlpha);
     RenderShader.SetFloat("MinAlpha", MinAlpha);
     RenderShader.Use();
     Render(source, target, true, false);
 }
Пример #2
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);
        }
Пример #3
0
 public override void Use(Texture source, Texture target)
 {
     RenderShader.SetFloat("Glow", Glow);
     RenderShader.Use();
     Render(source, target);
 }