i'd like to have access to multiple textures inside the fragment progarm of my glsl script. i'm looking at things like the compositing examples with jit.gl.slab and i see that the two textures enter the object from its two inlets, and within glsl are refered to using
varying vec2 texcoord0;
varying vec2 texcoord1;
uniform sampler2DRect tex0;
uniform sampler2DRect tex1;
what i would like to do is apply a shader to a thing i'm rending with jit.gl.mesh; what i'm not sure about is how to access the textures and how they will be numbered. my intuition is, if i want two videos as textures, i use two jit.qt.movie's and two jit.gl.textures and name them differently, and then tell jit.gl.mesh "textures mytext1 mytext2". but i can't find any examples that make user of multiple textures, in jitter, without jit.gl.slab.
would someone be able to point me to some existing patches?