问题
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