PDA

View Full Version : question about znear and zfar, camera or world coordinate system?



curtainsbacked
06-13-2017, 11:10 AM
is the znear and zfar that I specify in



ortho (T const &left, T const &right, T const &bottom, T const &top, T const &zNear, T const &zFar)


Is it in camera space or in world coordinate system?

GClements
06-13-2017, 01:22 PM
The coordinate system is whatever is used by the coordinates you're transforming with the matrix.

The transformation created by glm::ortho() will transform Z=-zNear to Z=-1 and Z=-zFar to Z=1.