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.
Issue #591 Incorrect texture coordinates
Merge pull request #592 from Davhed/spot-fix

Fixed bug when using multiple spot lights
Merge pull request #1 from MasDennis/master

master merge