The documentation for perspective-matrix says > FOVY is the field of view, in degrees. But the code actually assumes it is in radians. (By the way, thanks for the code!)