Changed from shadowmap array to shadow atlas (to workaround a mesa bug).