erlandranvinge / photons

Ported Grant Schindlers "Ray Tracing and Photon Mapping" to JS for educational purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

photons

Port of Grant Schindler's concise "Ray Tracing and Photon Mapping" to JS for educational purposes. Ported almost line by line from Processing to JS, in order to preserve the original intent with the source. Complemented with a small gfx library to port Processings's drawing capabilitities to HTML5 Canvas.

demo

https://erlandranvinge.github.io/photons/

Use the mouse to move the spheres and/or light source.

About

Ported Grant Schindlers "Ray Tracing and Photon Mapping" to JS for educational purposes


Languages

Language:JavaScript 96.3%Language:HTML 3.7%