--- # edu-10m1 title: 'ยง9 Exercise 2: draw a coloured triangle' status: completed type: task priority: normal created_at: 2026-03-13T19:54:52Z updated_at: 2026-03-16T02:30:28Z parent: edu-4u7w --- Write the exercise to draw a hard-coded coloured triangle: define three vertices in a vertex buffer, write a vertex shader that passes colour through, write a fragment shader that outputs the interpolated colour. First rendered geometry. Part 3 of the Shader Programming chapter.