Just a simple OpenGL template that I use on my streams.
Shortcut | Description |
---|---|
q | Quit |
F5 | Reload main.frag and main.vert shaders. Red screen indicates a compilation or linking error, check the output of the program if you see it. |
SPACE | Pause/unpause the time uniform variable in shaders |
←→ | In pause mode step back/forth in time. |
Name | Type | Description |
---|---|---|
resolution |
vec2 |
Current resolution of the screen in pixels |
time |
float |
Amount of time passed since the beginning of the application when it was not paused. |
mouse |
vec2 |
Position of the mouse on the screen in pixels |