Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : [2.0xx] How to set multiple render targets for a fragment shader?

$
0
0
From looking at the source I've learned how to connect a PImage or PGraphics to a uniform sampler2D:
  1. yourShader.set("textureNameInShader", yourTexture);
Good to know. However it seems this only works as an input texture, not as an output render target.

Viewing all articles
Browse latest Browse all 1768

Trending Articles