Collection of Shadertoy shaders displayed in a Qt window.
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make
You can skip through the shaders with the mouse wheel.
- Add fragment shader and texture files
- Add header file for the new effect
- Add new effect to the effects enum in mainwindow.h
- Add new case in MainWindow::setEffect()
- Update CMakeLists.txt and resources.rc
See existing files for examples.
uniform vec3 iResolution // viewport resolution (in pixels)
uniform float iTime // shader playback time (in seconds)
uniform vec3 iChannelResolution[4] // channel resolution (in pixels)
uniform vec4 iMouse // mouse pixel coords. xy: current (if MLB down), zw: click
uniform samplerXX iChannel0..3 // input channel. XX = 2D/Cube
- digitalrain: Digital Rain by WillKirkby
- matrix: 3d matrix rain by laserdog
- starfield: Modified version of Parallax starfield by dax105
- All fragment shaders and images: CC BY-NC-SA 3.0
- All other: MIT License