This a ray tracer in JavaScript. The code is pretty close to a direct translation of the raytracer I did for my computer graphics class, which you can find here (code under "handed_in/"). It's not really complete (spheres only, no reflections), and has some bugs, a raytracer. It's buggy and incomplete, but works well enough to render spheres. |
2000+ free JavaScripts
at www.JavaScriptBank.com