We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
There are multiple ways, just have a look at Blurry Pixels or scaling without smooth.
Thanks works great! :-bd