Matrix stacks in OpenGL deprecated?

后端 未结 2 1854
走了就别回头了
走了就别回头了 2021-02-06 14:34

I just read this:

\"OpenGL provided support for managing coordinate transformations and projections using the standard matrix stacks (GL_MODELVIEW and GL_PROJECTION). In

2条回答
  •  没有蜡笔的小新
    2021-02-06 15:34

    The matrix stack is part of the fixed function pipeline which is deprecated. You still can access the old functionality over the compatibility extension but you should avoid to do this.

    There are some good tutorials on matrices and cameras but I prefer this one. Send your matrix to the shader and multiply, as you said, the vertices with the matrix.

提交回复
热议问题