Made shadow mapping more general to lights