We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi.. In relationship to my recent post, https://forum.processing.org/two/discussion/17623/shadertoy-to-pshader-differences-bugs#latest
It seems I need to be using 16 bit render buffers - the way shadertoy apparently does. I use 8 bit PGraphics for the buffers.
So my question is - could someone tell me the code to use to pack / unpack 16 bit & 8 bit - and where to place this inside the glsl frag shader. Or maybe something could be done on the Processing side to convert?
Thanks, Glenn.
Answers
I am currently trying to do the same thing. So far unsuccessfully... but making some progress. Hoping someone else has accomplished this already, but I'll also post updates as I learn more.
Ha - I gave up in the end. Got it working in openFrameworks though, https://forum.openframeworks.cc/t/how-to-configure-a-shader-with-multiple-render-buffers-and-swapbuffers-ex-shadertoy/23933/25
and turns out shadertoy uses 32 bit buffers and not 16 bit!