Fixed bug with point lights using shadows.
Cleaned up ambient code.