We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I would like to keep a frame buffer in the shader (say, the last 1 second of video).
To do that I tried with
uniform sampler2D tex; and from Processing
sometimes I try writing into that array with
shader.set("tex[" + F + "]", frame);
Somehow it doesn't work. It behaves as if there is only one frame and the frame index is completely ignored. It always displays the last received video frame, no matter which indices I use for reading or writing.
I thought about having 30 sampler2D variables, but then I could not access them by index... Any ideas on how to achieve this?