All Posts

Specular Reflection and Mirrors

Reflections are quite simple in a raytracer

Phong/Lambert shading

A simple Lambert shader gives adds depth to our spheres. Lighting is proportional to the cosine of the angle between the light and the surface normal

Sphere/Ray Intersections

We derive the equation to intersect a sphere and a ray from basic definitions