cargo run --release -- ./path/to/shader.glsl
## with cargo watch
cargo install cargo-watch
cargo watch -x "run --release"
On Linux it might be required to run to get the UI to render
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
cargo run --release shader.glsl
Optional params:
# load fragment shader
-f /path/to/shader.glsl
# create new fragment shader
-n /path/to/shader.glsl
-a window is always on top
For all params:
cargo run --release -- --help
cargo test
See file .ignore
for directories and files ignored by cargo watch
F12 => Take snapshot of current shader. Saved into shader_dir/snapshots/snapshot-<datetime>.glsl