ShaderLabs provides a abstraction over a OpenGL aplication so you can focus on learn or prototype your OpenGL vertex, fragment, geometry or tessellation shaders.
It is a Qt4 Gui application, with beautiful and easy to use interface.
For now, you can download a .deb package on the release section of this repository or build the application from source.
For .deb package, on Ubuntu trusty (it's tested with Travis CI), run
$ sudo dpkg -i /path/to/file.deb
this will let some broken references, so run
$ sudo apt-get install -f
to fix the issues and install the dependencies.
The project is intended to be multi platform, so it should be easy to build on Linux, macOS or Windows without problem. Let me know about any issue.
First you need to get Qt4. The installation of Qt is beyond the porpose of this guide, please, follow the the installation guide of you plataform.
On Linux, it also needs libGLU, so install (libglu1-mesa).
In case you have Qt4 and Qt5 installed (e.g. when installed through meta package qt-sdk) it also good to specify which version qmake will use:
$ export QT_SELECT=qt4
- Get the source
$ git clone https://github.com/ethiago/shader-labs.git ShaderLabs
- Navigate to source path
$ cd ShaderLabs
- Run the build script
$ ./build.sh
.
The binary will be located in ./build/app/bin
This video has some basic usage of ShaderLabs and it a great starting point.
If you want to learn more about shaders, this tutorial could help.