Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 858 Bytes

README.md

File metadata and controls

56 lines (34 loc) · 858 Bytes

skuggbox

cargo run --release -- ./path/to/shader.glsl

## with cargo watch

cargo install cargo-watch
cargo watch -x "run --release"

Setup

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

Run

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

Run tests

cargo test

Misc

See file .ignore for directories and files ignored by cargo watch

Shortcuts

F12 => Take snapshot of current shader. Saved into shader_dir/snapshots/snapshot-<datetime>.glsl