3D Lab: the basics of 3D rendering, from a 1998 lab assignment to three.js
How does a list of coordinates become a shaded image? 3D Lab is a computer graphics lab assignment from 1998, translated from C and IRIS GL to three.js. Here I go through the basics step by step – camera, perspective, clipping, visibility and Phong's lighting model – with the maths, diagrams and the bugs I found in the original.

