Scaling P2D up with noSmooth

edited February 2014 in How To...

I am drawing to a PGraphics instance as a buffer and then calling image() to scale it up to full sketch size. I can turn smooth() on or off to have the results smoothed or pixelated. This works fine.

However, I'm interested in using a shader so am now setting to P2D via size(). noSmooth() seems to have no effect now. I tried setting the PGraphics instance to P2D and using noSmooth() on that too, but again no pixellation.

Is there any way to scale up P2D with pixellation? I don't want the smoothing because I intend to run a shader instead.

Thanks!

Answers

Sign In or Register to comment.