Skip to content

vojd/skuggbox

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published