- install node
- run npm install -g http-server
- npm install node-zopfli
- Edit tools/src/shaders/fragment.frag
- Run tools/out/leviathan-debug.exe
- leviathan will reload shader when you save it
- When shader is finished minify it by running minifyShader.bat.
- Start http server in project root folder: http-server
- Put minifed shader code to sourceDev.js file into fragmentShader variable.
- Make changes to minified shader, these changes are states in sourceDev.js
- Point browser to http://localhost:8080/index.html
- When you feel that everything is working paste sourceDev.js to https://xem.github.io/terser-online/ and copy output to source.js
- Also might be good idea to try different minifications: https://js1024.fun/
- Run minifyCode.bat and try results at http://localhost:8080/release/index.html