Recreating @boundmode 1 (clear) using jit.gl.pix


    Dec 04 2013 | 6:49 pm
    This feels like it should be absurdly simple but I still have trouble wrapping my head around achieving certain things using gen. I'm trying to recreate the offset_x function of jit.rota in jit.gl.pix but the sample mode only allows for wrap, mirror and clamp. I want to recreate it to act like boundmode 1 in jit.rota wherein the image sliding along the x axis leaves only video black past the offset point. Any ideas? Attached is the code thus far (using jit.gl.hap).

    • Jan 08 2015 | 12:55 am
      Try this.