2
0

Тайлбар байхгүй

rexim 56795b6f92 Render objects in the reverse order 3 жил өмнө
assets 54c40c0972 Include the size in the name of the textures 3 жил өмнө
include c443baec1d What if we straight up add the missing headers into the repo? 3 жил өмнө
shaders a3cc7bf04d main.vert -> screen.vert 3 жил өмнө
.gitignore 9cb042e620 Implement the capability to make screenshots 3 жил өмнө
LICENSE 63167ff3eb Ready. Set. Go! 4 жил өмнө
README.md 0b2e14bb89 Update README 3 жил өмнө
build_msvc.bat c443baec1d What if we straight up add the missing headers into the repo? 3 жил өмнө
build_posix.sh 4fd7eb440e Use c11 on POSIX platforms and be pedantic about it 3 жил өмнө
glextloader.c 117408e8cd Fix compilation on Windows 3 жил өмнө
la.h 184f99af0c Add support for vertex attributes 3 жил өмнө
main.c 56795b6f92 Render objects in the reverse order 3 жил өмнө
render.conf ba998260d4 update render.conf 3 жил өмнө
setup_glfw.bat f869941ae9 Remove GLEW dependency on Windows 4 жил өмнө
stb_image.h 35eff30fd5 Add rough draft of a texture support 3 жил өмнө
stb_image_write.h ba08ce6fcc Add stb_image_write.h 3 жил өмнө
sv.h 9c3283c3ba Introduce render.conf file 3 жил өмнө

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.

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