We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
Do you know how to send multiple textures to a vertex shader using PShape ?
If I write pshape.texture(image);
I can access the texture using uniform sampler2D texture;
How can I use another image as a second texture and how can I target it in my vertex shader ?
Answers
I have found a solution. You can use
pshape.set("textureN", images[N]);
And retrieve it with :
uniform sampler2D textureN
;