Fixed the culling to make it use the default face mode and orientation,
I will rewrite the basic 3d shape functions tomorrow.