I have a flat surface drawn with a single fullscreen GL_QUAD
.
I want to deform this surface at each point specified by my GL_Texture2D
, preferably through some kind of shader.
In my mind, black could correspond to flat and white could correspond to a hill.
I want to have about 4 million points on my terrain and update them at each step in my program.
How would I use a geometry shader to do this? Is a shader able to generate new veritices?