GPU School

Lesson 3

Into 3D: a spinning cube

Same pipeline as the triangle. The new part is one matrix that turns 3D points into clip space, plus a depth buffer so near faces hide far ones.

Try