Re: alpha mask with jit.gl.slab and javascript


Forums > Javascript > alpha mask with jit.gl.slab and javascript
January 16, 2013 | 5:56 pm

hi roland.
it’s a little tricky, but entirely possible.
the trick is to use the "activeinput" attribute to tell the slab which input will receive the textures or matrices.
after that, you simply use the "jit_matrix" or "jit_gl_texture" messages followed by the matrix or texture name.

i’ve attached a js and max patch to demonstrate.