It now renders using faces, and I made the fragment shader color the pixels based on their depth. Sadly, it still glitched to all hell. Try out some of the models.