Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
4.7.1
-
All OpenGL-enabled platforms.
Description
It would be really useful to add support for multiple color target attachment (MRT - Multiple Render Targets) in QGLFramebufferObject.
This will enable developers to render simultaneously to multiple textures, rather than just one. The MRT functionality is present in the OpenGL specifications since the framebuffer object extensione entered in the core (2.0 - 2.1). This feature is crucial for a variety of rendering algorithms; it avoids multiple render passes and makes the shader code more compact.
I think having MRT in QGLFramebufferObject would let expert OpenGL developers to directly use Qt-provided classes rather than writing their own or rely on other external libraries.