Understanding glm::lookAt()

后端 未结 4 1572
情深已故
情深已故 2020-12-12 21:52

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()

4条回答
  •  盖世英雄少女心
    2020-12-12 22:24

    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.

提交回复
热议问题