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
Related Tags
graphics × 1030opengl × 173
unity × 108
2d × 105
graphics-programming × 99
3d × 97
java × 77
c++ × 76
shaders × 69
rendering × 69
textures × 62
xna × 57
directx × 49
mathematics × 46
c# × 40
libgdx × 33
sprites × 33
graphic-effects × 32
animation × 31
android × 30
art × 25
physics × 24
performance × 24
algorithm × 23
glsl × 22