Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

wisp_editor

crates.io

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.

Run it

cargo run -p wisp_editor              # native

The 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.

License

Licensed under either of

at your option.