From looking at the source I've learned how to connect a PImage or PGraphics to a uniform sampler2D:
- yourShader.set("textureNameInShader", yourTexture);