i found the delta that was calculating the edge of the entire mesh, i messed it up a little bit to see how it works, and it seems that if i decrease the minus number that divides the current edge calculate before, i get this horrid shadow in the distance, but at least i found it