Diffuse Lighting

Well, with the hit test now working, its time to move on to diffuse lighting. This is pretty simple todo, go check Wikipedia to find out how. This isn't a walk through of putting together a ray-tracer. Diffuse lighting on our three spheres: < > A plane added to our scene. < > The next step is to add specular lighting.

Diffuse lighting on our three spheres:

A plane added to our scene.