Instead of creating a tunnel in 3d (object) I made a wall and gave it a tunnel shape, when I created a rock side, I did the same system and according to the position of the sun it gives shade, here I had to give yes or yes and what the sun is above the tunnel.