How to get round using 16 bit image buffers (Shadertoy question)

edited August 2016 in GLSL / Shaders

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.

Tagged:

Answers

Sign In or Register to comment.