How to send multiple textures to a vertex shader using PShape ?

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

  • edited May 2015 Answer ✓

    I have found a solution. You can use pshape.set("textureN", images[N]);

    And retrieve it with : uniform sampler2D textureN;

Sign In or Register to comment.