I need to draw a normal-vector scene and default scene.
I could achieve this my having two programs with different fragment shader to produce the following images. It will require me to draw twice.
//somethinglike useProgram(normal_vector_rendering_program); render_bunny(); useProgram(just_default_scene_program); render_bunny();
However when I am rendering the default scene, I am already passing normal vector information to achieve the lighting.
So it got me curious, can I produce two different scenes with one program(a program that has two color_buffer attaches) and one draw call somehow? I think if such is possible then I am saving lots of computer resource by not having to draw multiple times for different images.