glu Viewing
Constructing an ‘M’ matrix
- gluLookAt(ex,ey,ez, //eye point COP(WC) cx,cy,cz, //point of interest upx,upy,upz //up vector )
Matrix that maps
- (cx,cy,cz) to -ve Z-axis
- (ex,ey,ez) becomes the origin
- (upx,upy,upz) becomes the y-axis
Premultiplies current matrix