Graphics /Build / The graphics pipeline
The graphics pipeline
goal
You will assemble the minimum rendering path for one red triangle and one yellow line. Prepare separate VAO/VBO state for the supplied geometry, expose attribute 0 as two floats per vertex, link and activate the vertex and fragment shaders, set projection, model and colour uniforms, and issue the correct GL_TRIANGLES and GL_LINES draws. The finished setup should reproduce the supplied framebuffer example, and you should be able to identify from the source listings which prepared state each draw depends on and where vertex processing, rasterisation and fragment output occur.