Plants may wilt because the soil is dry and the plants don't have enough to water to survive. If you add shade, this means that the sun no longer shines down directly on the soil, helping the soil stay damp. Less water evaporates from the soil, and the plants don't wilt as much.