shader don't have to do anything with shadows...
shader just calculate how the pixels of a model look like.
the only shadows a shader can do is to calculate the difference of 2 directions per dot-product and make the pixel brighter or darker...(its that shading that the models have ion the engine by default)

I am not 100% sure how the shadows are generated, but not with a shader