Search code examples
openglshadervertex

OpenGL: Add vertices with vertex shader


Tell me, please, how I can add new vertex in vertex shader?


Solution

  • The vertex shader only transforms vertices. If you need to output additional geometry based on the input vertices a geometry shader is what you need.