gl.slab shader that is simlar to jit.glue


    Mar 08 2006 | 6:09 pm
    does anyone know of a gl shader that can act like jit.glue in 2d with 4 char jit matricies as inputs?
    thanks

    • Mar 08 2006 | 6:20 pm
      Hi Andy,
      This might be a little tricky to implement, but it's definitely
      possible. The GLSL is actually pretty simple to learn once you look
      into it. I recommend picking up a copy of the orange book. You will
      basically need to be scaling and offsetting texcoord values, as well as
      providing some sort of logic that defines which texture input is drawn
      at each pixel. The tricky part will be explicitly setting the size of
      each input texture and then the size of the output texture.
      Good luck!
      Andrew B.
    • Mar 08 2006 | 8:15 pm
      Hello!
      I have done that with several textures to several jit.gl.videoplane,
      all resized to a portion of the gl world. It works perfectly fine!
      The fun thing is that you can move them around after that!
      Good luck!
      pa
    • Mar 14 2006 | 9:16 pm
      Using textures works a treat.
      Many thanks
      Andy