Spherical Ray Tracing

Demonstration of ray tracing from the camera to a set of spheres. Spheres are defined simply as a position and radius, rather than a quad mesh. Raytracing process is optimized by only tracing rays in areas of high contrast and interpolating elsewhere.

RaytraceRenderer.java

RayTrace.java

DirectionalLight.java

Material.java

LeanSphere.java