3D Polygon Renderer. Assignment #3 for COMP261