This is a tool i have never used. Its called the displacement map option. It allows you to bend pixels so whatever you want to overlap over a texture or fabric will take on the characteristics of it. With the tool i made the shadow take on the curves of the sand.
The finished product: