3 ms·
With the right extensions, you can render to a texture which can be sampled from in subsequent draw calls. The framebuffer object extensions that allow you to
by deafcalculus 10y ago
With the right extensions, you can render to a texture which can be sampled from in subsequent draw calls.
The framebuffer object extensions that allow you to write to 32-bit RGBA textures are widely supported on desktops and mobiles (OpenGL ES 2). But floating point textures are not. So, shaders resort to encoding 32-bit floats in RGBA textures. This unfortunately isn't a simple cast. More here: http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/ http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-t...