Ugly Looking Looking When Distant

Hello, I noticed some really bad looking shadows when looking at an object a bit far away from it. Hear are some pictures of a first person character going closer to the shadow by the door. I am fairly new to game design.

As you may see, the closer I am to the shadow the nicer it looks. How can I increase the render distance so that the shadows look nice all the time? Thank You.

,

Excuse the title, dumb mistake that I realized after posting

resolved some 2 years later