A bit more algebra
Lighting & perspective test code