1 vote

What's the purpose of this cross product and dot product in triangle clipping code?

This is a check for the direction the triangle is facing, which is determined by its winding order. That is, if you trace your finger across the screen from the projected position of vertex 1 to ...
  • 125k

Only top scored, non community-wiki answers of a minimum length are eligible