Sin descripción

rexim 289e1c4777 Introduce local binding `r` to `global_renderer` in `main` hace 3 años
assets 54c40c0972 Include the size in the name of the textures hace 3 años
include c443baec1d What if we straight up add the missing headers into the repo? hace 3 años
shaders 9982b0e881 Remove box-muller shader hace 3 años
.gitignore 9cb042e620 Implement the capability to make screenshots hace 3 años
LICENSE 63167ff3eb Ready. Set. Go! hace 4 años
README.md 9cb042e620 Implement the capability to make screenshots hace 3 años
build_msvc.bat c443baec1d What if we straight up add the missing headers into the repo? hace 3 años
build_posix.sh 4fd7eb440e Use c11 on POSIX platforms and be pedantic about it hace 3 años
glextloader.c c0dae83277 Remove GLEW dependency on Linux hace 4 años
la.h 184f99af0c Add support for vertex attributes hace 3 años
main.c 289e1c4777 Introduce local binding `r` to `global_renderer` in `main` hace 3 años
render.conf 54c40c0972 Include the size in the name of the textures hace 3 años
setup_glfw.bat f869941ae9 Remove GLEW dependency on Windows hace 4 años
stb_image.h 35eff30fd5 Add rough draft of a texture support hace 3 años
stb_image_write.h ba08ce6fcc Add stb_image_write.h hace 3 años
sv.h 9c3283c3ba Introduce render.conf file hace 3 años

README.md

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.

render.conf keys

Key Description
vert Path to the vertex shader
frag Path to the fragment shader
texture Path to the texture

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