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
- Turn off Depth test. Why do back faces now paint over front ones?
- Turn off Perspective. What stops changing as the cube turns?
- Drag Field of view to 120°. Why does the cube look smaller and stretched?