this project uses CMake, you can download it here or use an installation package manager like homebrew.
brew install cmake
clone the project with submodules:
git clone [email protected]:karimnaaji/live-glsl.git
git submodule init && git submodule update
mkdir build && cd build
cmake ..
make
./live-glsl.out fragment_shader_to_watch [sound_path]
Possible use of these uniforms :
- time : float
- resolution : vec2
- uniform float spectrum[256]; // spectrum of sound
- uniform float wave[256]; // wave of sound