Fixed bug when using multiple spot lights

This change improves the light calculations for `SpotLight` in each of
the base materials so that multiple spotlights can now be used.
Merge pull request #592 from Davhed/spot-fix

Fixed bug when using multiple spot lights