Assignment 4: Ray Tracing
I implemented a JavaScript ray tracer that reads scene descriptions from JSON and renders spheres/planes with Blinn-Phong illumination. The renderer supports ambient, diffuse, specular, shadows, and recursive reflections with configurable max depth.
Implemented Results
- Ray-scene intersection for spheres and planes
- Ambient shading baseline
- Diffuse + shadows
- Specular highlights using halfway vectors
- Recursive reflections with depth control
Output Samples
Live Demo
The ray tracer demo below lets you choose a scene from the dropdown (including None).