(Glide64) Refactor code - applying prim/flat shading to vertices