We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello
I'm experimenting with float pack in texture bytes, now two bytes is working but I'm not able to do with 3, somebody can help?. The aim is to build and share ssao, shadows and something more.
When using opengl ES2 pack examples doesn't work and strange behaviour with byte ordering that I don't understand.
The working example with two bytes in the repo https://github.com/edumo/P5PostProcessing Depth2Bytes
thanks
Answers
Have you seen this? http://forum.processing.org/two/discussion/3250/how-to-store-information-in-the-alpha-channel#Item_9
I had problems packing 4 bytes due to the alpha channel. Poersch posted and example where a fragment shader packs 4 bytes into a texture, it works fine for me.