I would like to draw a scene to the default framebuffer, while also drawing some auxiliary data related to some of my drawn models to an offscreen buffer with the same image dimensions as the default framebuffer.
I understand I can do these two things separately, in two glDraw* calls (one rendering to an FBO, one not) that will use two appropriate shader programs.
And I think (still learning about this) I can do them mostly simultaneously, by attaching two renderbuffers/textures to one FBO, doing one glDraw* call with one shader program whose fragment shader will write appropriate values to multiple outputs corresponding to the multiple FBO attachments, and finally copying one of the two images in the FBO to the default framebuffer, by using it to texture a scene-filling quad or by calling glBlitFramebuffer.
But can I make one glDraw* call, with one shader program, and have my fragment shader write both to the visible framebuffer and some offscreen FBO? I am suspecting not, from what I've seen of the relevant documentation, but I'm not certain.