I'm making a ray tracer for fun.
At the moment I'm closely following the blog tutorials from Brook Heisler's blog.
Run the example from the root directory with cargo run. This produces a file test.png.
If it is a long time since build, run rustup update to update deps. Then run cargo build.
Run npm run serve. This uses WebAssembly to do the ray tracing in the browser. Open your browser on localhost:8080.
Check:
npm run prettier -- --check .
Write:
npm run prettier -- --write .
Sett opp litt GH actions, a la https://dev.to/bampeers/rust-ci-with-github-actions-1ne9