Physically-based rendering in the browser with WebGL
MIT License
https://oseiskar.github.io/webgl-raytracer/
The idea is to create a framework for composing different WebGL raytracers from shared pieces of GLSL fragment shader code. Different combination of rendering methods, material models, cameras and data structures may be used.
Utilizes my glsl-bench library (included as a submodule) & TWGL for the WebGL boilerplate, for example, everything not related to "worlds with two triangles".
npm install
npm run build
# npm run watch # for hot reloading
python3 -m http.server 8000 --bind 127.0.0.1 # or similar
# then go to http://localhost:8000/
# TODO: hacky
git checkout gh-pages
git reset --hard A_COMMIT_SHA_WITHOUT_BUNDLE_JS
git rebase main
npm run build
git add .
git commit -m "Deploy"
git push -f
Miscellaneous interesting free online material on raytracing