I want to make a simulation of water drops producing waves, in OpenGL with C++. I calculated the height for each point of my plane grid in the 'Vertex Shader' with this formula:

The problem is that I don't know how to generate the waves so they gradually advance.

This is what my waves look like:

I want to have one circle at the beginning instead of all of them. The first circle should get bigger, like in the photo.

How do I do this?

• Where did you get that formula from? – Bálint Jan 1 '17 at 22:20
• http.developer.nvidia.com/GPUGems/gpugems_ch01.html – domino dominica Jan 1 '17 at 22:23
See that t there towards the end?