This is a very simple interactive particle simulator. The whole pipeline consists out of a single shader program. The vertex shader computes and renders particles at the same time. The fragment shader just outputs the computed colors with blending enabled. The actual particles are stored in a Shader Storage Buffer which is a really useful arbitrary read/write interface of global GPU memory.
Requires OpenGL 4.5.
Also see https://youtu.be/NhnoNYqIhTI.
- W, A, S, D => Movment
- E => Toggle cursor visibility
- T => Toggle simulation
- V => Toggle VSync
- F11 => Toggle fullscreen
- LShift => Faster movment speed
- LControl => Slower movment speed
- Esc => Close
- LButton => Set point of mass