FBO Shader + Multiple Render Targets Example
BlitzMax Forums/OpenGL Module/FBO Shader + Multiple Render Targets Example
| ||
With help from this thread, I've managed to get a basic working example of a FBO rendering to multiple targets using GLSL shaders gl_Fragdata[n] output as described in this article. Hopefully this technique is a step towards implementing http://http.developer.nvidia.com/GPUGems/gpugems_ch38.html (once I can get my head round the maths). Storing extra state in the additional textures allows for a whole load of GPU based opportunities (outside of OpenCL). Given how finickity it was to get working with Max2D, thought I'd share the output. FBO example glsl.max Last edited 2011 Last edited 2011 |
| ||
Cool, very useful thanks. |