The shrimp in the ecosphere depend on the algae for food. If there was no sunlight, the algae would die, which leaves no food for the shrimp.