Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
/ libshadertoy Public archive

A library for rendering GLSL shaders in an Shadertoy-like environment

License

Notifications You must be signed in to change notification settings

alixinne/libshadertoy

Repository files navigation

libshadertoy

Build Status Codacy Badge Bintray master docs develop docs License: MIT

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.

Introduction

Documentation

Read the online documentation.

Usage

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.

Copyright

libshadertoy - Alixinne [email protected]