OpenGL: add vertices with vertex shader

Please tell me how can I add a new vertex in the vertex shader?

+4
source share
3 answers

A vertex shader converts only vertices. If you need to derive additional geometry based on input vertices, you will need a geometric shader .

+5
source

You can add vertices using the geometric shader http://www.opengl.org/wiki/Geometry_Shader

"GS can create new primitives, unlike vertex shaders, which are limited to a 1: 1 ratio to output."

+3
source

You can not. What geometry shaders for.

+3
source

All Articles