libshadertoy is a C++ library for rendering multipass programs using OpenGL desktop. Its defaults allow running programs written for the shadertoy website, but it can be easily extended. This library can be either compiled from source, or installed from the built Debian packages.
Read the online documentation.
This library only uses an existing OpenGL context that must be created and made current before trying to render frames from a program. This can be achieved using GLFW3 (recommended), GLUT or any other context creation library. Extension loading is done using libepoxy, although this is transparent to the user of the library.
See the examples/
folder on how to use this library.
Note that only iResolution
, iTimeDelta
, iFrameRate
, iChannel0
,
iChannel1
, iChannel2
and iChannel3
are automatically maintained by the
library render context. The host is responsible for updating other uniforms,
such as iFrame
, iTime
and such.
libshadertoy - Alixinne [email protected]