Created by Gregory Conrad
A relatively simple ray tracer built with WebGL that showcases several different scenes.
At a high level, this ray tracer supports:
- Animation
- Singular light source (using Phong model)
- Variable number of reflections
- Several types of objects (currently planes and spheres)
Refractions and other world object types could be added fairly easily, but that is outside the scope of this simple demo.
Note: This project is a largely modified version of the starter code supplied in CS 543 at WPI. It was almost completely rewritten but some basic concepts still remain in this final product.
index.html- the main HTML file that contains both shadersmain.js- the main JS filelib/- JS libraries used for WebGL setup and usabilityinitShaders.js- grabs shaders from HTML and compiles themMV.js- contains many convenience methods for handling vectors & matrices in JSwebgl-utils.js- contains utility methods, including a setup method for WebGL