Use a native editor to edit and run shaders on shadertoy.com
The script will spawn a selenium firefox windows and whatch for changes to shader.glsl
When it detects saved changes it will insert the contents of the file into the buffer and recompile the shader.
clone the repo and run the main.py with python.
git clone https://github.com/ElSargo/shadertoy_editor/new/main?readme=1
cd shader_toy editor
python main.pyMake sure you have these installed:
- python3.10 or later
- selenium
- firefox
For debian based distros
sudo apt install python3
pip install selenium
sudo apt install firefoxThere is a flake.nix that will pull dependencies to a temporary shell
nix develop
python main.py