Orthographic projection with origin at screen bottom left

前端 未结 3 1207
攒了一身酷
攒了一身酷 2021-01-17 02:56

I\'m using the python OpenGL bindings, and trying to only use modern opengl calls. I have a VBO with verticies, and I am trying to render with an orthographic projection mat

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 03:24

    glUniformMatrix4fv(projectionUniform, 1, GL_FALSE, matrix)
    

    Your matrix is stored in row-major ordering. So you should pass GL_TRUE, or you should change your matrix to column-major.

提交回复
热议问题