added support for variable number of vertices. Changed lighting to 'camlight'.