Menu

Filter with multiple inputs

Help
2009-04-24
2012-12-26
  • Julien Keable

    Julien Keable - 2009-04-24

    Hi ,

    I'm trying to use photoshop blending functions I found (implememented in GLSL) with texture filters. From the website doc, you mention how filtering can operate on groups of texture, but I can't see how to call the actual filtering.

    Filters are called using a method from the input texture, but when you have 2 input textures, how can this be done ?

    Thanks!
    jukea

     
    • Andres Colubri

      Andres Colubri - 2009-04-24

      Hello jukea,

      Applying one filter to one or more textures is easy. You can use the apply() method of the GLTextureFilter class by passing an array of input textures. Something like this:

      filter.apply(new GLTexture[]{inTex1, inTex2, inTex3, inTex4}, outTex);

      Andres

       

Log in to post a comment.