That's how pre-calculated shadow maps work. It is easy to compute but it is also very inaccurate. The opposite of it are raytraced shadows. Very expensive but also very exact.



Cheers