Programmable Geometry Shader Example
This example uses modern OpenGL – read programmable graphics pipeline – in order to generate 3D geometry out of single vertices via shaders written in GLSL. This example is slightly more complex than the ones I could find, since the shader programm also generates the colors per vertex.
- ofBook – Introducing Shaders
My intial starting point intothe world of shaders.
- Learning Modern OpenGL
A very quick overview but helpful nevertheless.
- Modern OpenGL 3.0+ - Shader Files
A quick refresher on shaders and how they are implemented in native C++. Overall very interesting YouTube playlist based on the course Modern OpenGL by Sonar Learning.
- Open.GL tutorial site
I found this one the most approachable tutorial on modern OpenGL. Here's a step-by-step explanation on how to create geometry shaders.
- Learn OpenGL
The self-proclaimed #1 resource on OpenGL. The chapter on geometry shaders clarified some misconceptions and provided the starting point to assign colors per vertex.
Although well beyond the scope of what this example achieves, this of example was the main source code I referred to.