After todays work we can render the shadows cast by objects in our scenes!

Finding out which points are in shadow is actually pretty neat, just cast a ray toward the light, and see if it hits anything else on the way. If the light is obscured, the point just gets ambiant light. When lit by multiple lights, the whole thing is just done separately for each light, and added in the end.

Cornered Spheres Spheres with Shadows Multi-light Shadows