A ShaderToy clone... but on Desktop!
This simple app automatically compiles your GLSL fragment shader code and displays the result on the screen. Built with wxWidgets, the app works on Windows, Mac, and Linux.
Full tutorial: https://www.youtube.com/watch?v=wxM9nkAQLHE
We use modern CMake's FetchContent
functionality to download wxWidgets
and GLEW
(the latter is needed to resolve OpenGL function addresses).
This works on Windows, Mac, and Linux. You'll need cmake
and a C++ compiler (tested on clang
, gcc
, and MSVC).
Linux builds require the GTK3 library and headers installed in the system. You can install them on Ubuntu using:
sudo apt install libgtk-3-dev
OpenGL tutorials require OpenGL development package on Linux (Windows and Mac should work out of the box):
sudo apt install libglu1-mesa-dev
To build the project, use:
cmake -S. -Bbuild
cmake --build build -j
This will create a directory named build
and create all build artifacts there. The main executable can be found directly in the build/
folder.