This is how it works thanks.
But there is one problem:
I have a 200x200 tile map, (tile size is 64x64), there are different objects on the map (trees)
Sprites are drawn only those that are visible on the screen, if you move the camera then the shadows remain only at 0,0 coordinates, why?