vertexshader / vertexprogram write vertex attributes to vbo?

前提是你 提交于 2019-12-24 09:01:56

问题


Is there a way to alter vertex attributes in a vertexshader/vertexprogram and save the changes back into the VBO?


回答1:


Yes, that is called Transform Feedback in OpenGL (or Stream-Out in DirectX):

  • http://www.opengl.org/registry/specs/EXT/transform_feedback.txt
  • http://www.opengl.org/registry/doc/glspec42.core.20120119.pdf (page 158)
  • http://msdn.microsoft.com/en-us/library/windows/desktop/bb205121.aspx


来源:https://stackoverflow.com/questions/9530387/vertexshader-vertexprogram-write-vertex-attributes-to-vbo

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