GLSL shaders are widely-used by MOST game engines, including some of fan favorites, Godot and GameMaker; in other words - learning shaders can come in really handy!
- Install
glfw3
andglew
packages using your package manager, or simply build and install them from source. - To build, do either one of these:
- Use
./autobuild
shell script for simple building of the project. Zero bloat and build systems, just pure GCC - Use GCC itself, don't forget to provide needed flags for libraries that we're using here!
- ???
Since GLSL shaders can compile at run-time, You don't even have to recompile the main C source file every time you make a small change to the shader!
Just click R
on your keyboard and all of the shaders will automatically be re-compiled for You!
This also means that if there's an error in the shader's code, it will be printed out to you verbosely and You will be able to figure out what went wrong!
All of that - on-the-go, no time wasted waiting for the whole program to compile, link, or even restart!
Here's a small demonstration video
For example shaders, please take a look into EXAMPLES