All Projects → tsoding → opengl-template

tsoding / opengl-template

Licence: MIT License
Just a simple OpenGL template that I use on my streams.

Programming Languages

c
50402 projects - #5 most used programming language

OpenGL Template

Just a simple OpenGL template that I use on my streams.

Controls

Shortcut Description
q Quit
F5 Reload render.conf and all the resources refered by it. Red screen indicates an error, check the output of the program if you see it.
F6 Make a screenshot.
SPACE Pause/unpause the time uniform variable in shaders
In pause mode step back/forth in time.

Shader Uniforms

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
tex sampler2D Current texture
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].