A minimal live-coding editor for bevy_wisp
shaders, native and on the web.
The UI is a re-arrangeable egui_tiles
layout of three panes: a syntax-highlighted code editor (with the file
controls), the auto-generated shader param widgets, and the shader view itself.
Pick one of the bundled shaders (compiled into the binary, so no assets dir is
needed at runtime) or create your own. Saving (button or ctrl/cmd+S) persists to
a key-value store that works the same on native (a file in the platform data
dir) and on the web (browser local storage), and reloads the shader in place;
broken edits keep the last working version on screen while the error shows in
the params pane.
cargo run -p wisp_editor # nativeThe editor also builds for the web (via trunk); from the
workspace, nix run .#serve-wisp-editor-web serves it locally. The web build
defaults to the WebGL2 backend; for the WebGPU backend (runs the compute-pass
shaders too) build with --no-default-features --features webgpu. On the web,
only the bundled shaders are available and saving is disabled.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.