Rearanged some stuff in the Shadow map class.