apply shader to really fast slideshow of PImage
in
Programming Questions
•
7 months ago
hello all,
I'm newbie to shader process in processing, so its not good ;)
I try to apply a simple shader to a really fast slide show.
my problem is the way I declare the texture of the shader, I get about 5 fps…must be a wrong method...
here's the part which cause problem.
I'm newbie to shader process in processing, so its not good ;)
I try to apply a simple shader to a really fast slide show.
my problem is the way I declare the texture of the shader, I get about 5 fps…must be a wrong method...
here's the part which cause problem.
- void draw()
{ counter++;
picture[counter] = loadImage(counter + ".jpg");
shader.set("texture", picture[counter]); //That decreases the frameRate to about 5 fps !!
image(picture[counter], 0,0,1920,1080);
picture[counter] = null;
}
what would be the clever way to do this ?
Thanks in advance.
Thanks in advance.
1