Forgive the beginner question but how do I apply a basic matrix transform inside of jit.gen/pix/gl.pix? I'm looking for the equivalent of mat() in GLSL. I don't see anything. With all of the convolution and matrix transforms throughout graphics and color management, there has to be something I'm missing. Every other shader I look at is full of transformation matrices.
While on the subject.. I wrote a .genexpr function to apply matrix transforms that I would like to use in codebox via require("");
I would also like change the coefficients dynamically by setting a parameter inside of the function. I am able to set the param with no problem when the code is in the patch but when called via require(""), it's lost. Setparam doesn't work either. Any thoughts? My patch is mess right now. I will post examples if needed.