I am following a tutorial to learn OpenGL in which they used glm::lookAt() function to build a view but I cannot understand the working of glm::lookAt()>
After the camera(or eye) and target(center), we can still rotate the camera to get different pictures, so here comes the up vector which makes the camera fixed and cannot be rotate.