Homogenous Vertices
OpenGL commands deal with two (x,y) and three dimensional (x,y,z) vertices
- Internally, all vertices have four coordinates
- x,y,z,w
- For two dim (x,y) => (x,y,0.0,1.0)
- For three dim (x,y,z) => (x,y,z,1.0)
- (x,y,z,w) => (x/w, y/w, z/w)
Usually, W is 1.0
- However, the projection matrix can make W not equal to 1.0
- Perspective division is (x,y,z,w) => (x/w,y/w,z/w)