Does OpenGL ES 2.0 require a shader for any vertex rendering?

孤者浪人 提交于 2019-12-11 03:19:19

问题


GL10 class has glVertexPointer method. GLES20 does not have this method, but has glVertexAttribPointer.

Does this mean that OpenGL ES 2.0 requires a having shader for rendering vertices?


回答1:


Yes, you need to create a vertex shader to handle the transformations, and a fragment shader that assigns the final color to a fragment (using texture sampling for example). The whole fixed-function pipeline has been removed in OpenGL-ES 2.0.



来源:https://stackoverflow.com/questions/5590335/does-opengl-es-2-0-require-a-shader-for-any-vertex-rendering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!