# Shadows are really bad

**URL:** <https://forums.unrealengine.com/t/shadows-are-really-bad/1174826>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [May 22, 2023, 3:26pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826 "2023-05-22T15:26:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CazBrecker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CazBrecker](https://forums.unrealengine.com/u/CazBrecker)\
**Post date:** [May 22, 2023, 3:26pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/1 "2023-05-22T15:26:01Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/d/9cd67587ad72c0d9277818c75c61c0e2cf969440.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/b/a3bef26c4d7b2c423a1673e4a50ce7df6e3ee12f.jpeg)  
My shadows end up like this, i realised that the closer I am towards the building, the better the shadows. I tried every single method on this website to get higher far shadow quality, and tutorials on how to make shadows far away render, and I got the mesh form city sample buildings

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 23, 2023, 11:51am UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/2 "2023-05-23T11:51:43Z")

</div>

It’s a know bug (by us, not sure if by Epic too). You can report it too.

RT Shadows are quite broken in UE5:

> [@Ray Tracing shadows (and reflections) bugs](https://forums.unrealengine.com/t/ray-tracing-shadows-and-reflections-bugs/1136744):
>
> NOTE: please, enlarge every image to notice the issues. Dirty ‘whity-sketchy’ artifacts (like tons of little lines) around actors’ edges or borders. More noticeables (but not only) when using lights’ source radius higher than 0: The right object is lit, even being in a shadowed area. It seems like an incompatibility between the Megascans master material and the ray traced shadows, so some nodes must be destroying the shadowing:

---

<div class="post-metadata">

**Author:** ![CazBrecker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CazBrecker](https://forums.unrealengine.com/u/CazBrecker)\
**Post date:** [May 24, 2023, 12:40pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/3 "2023-05-24T12:40:06Z")

</div>

I’m not sure if lumen is counted as rt shadows, but I’m literally using ue5.2, and they haven’t fixed the issue despite the fact that I am using ue5.2, so I hope Epic fixes it. But the problem is draw distance, it looks nice near the mesh, but becomes defragmented after moving away from the mesh as shown in the photos of the very first comment

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [May 24, 2023, 12:48pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/4 "2023-05-24T12:48:04Z")

</div>

Shadows aren’t under the lumen umbrella, shadows are either VSM, cascade, raytraced, or distance field shadows. It would help to know what type of shadows you’re having issues with and if the other types are having issues as well.

---

<div class="post-metadata">

**Author:** ![CazBrecker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CazBrecker](https://forums.unrealengine.com/u/CazBrecker)\
**Post date:** [May 25, 2023, 11:58am UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/5 "2023-05-25T11:58:28Z")

</div>

what do you mean by lumen umbrella?  
But I am using VSM, and for that to work, distance field shadows must be on, so must cascaded. But under global illumination in my post process, I set it to lumen

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [May 25, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/6 "2023-05-25T17:31:50Z")

</div>

> [@CazBrecker](#):
>
> what do you mean by lumen umbrella?

They mean that Lumen has nothing to do with casting of shadows whatsoever. Shadow casting is completely independent from global illumination.

Virtual Shadow Maps and Cascading Shadow Maps are two mutually exclusive systems.

---

<div class="post-metadata">

**Author:** ![CazBrecker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CazBrecker](https://forums.unrealengine.com/u/CazBrecker)\
**Post date:** [May 25, 2023, 11:58pm UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/7 "2023-05-25T23:58:23Z")

</div>

So, how do I fix the above problem?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [May 26, 2023, 12:46am UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/8 "2023-05-26T00:46:52Z")

</div>

> [@CazBrecker](#):
>
> So, how do I fix the above problem?

I don’t have an answer for you because we can’t even begin to troubleshoot if you can’t tell us what type of shadows you’re actually using.  
See:

> [@ZacD](#):
>
> It would help to know what type of shadows you’re having issues with and if the other types are having issues as well.

In case you are in fact using VSMs, here is the documentation which has lots of information you can look into for debugging.

> **[Virtual Shadow Maps](https://docs.unrealengine.com/5.0/en-US/virtual-shadow-maps-in-unreal-engine/)**
>
> Overview of using high resolution shadowing designed with film-quality assets and large dynamically lit open worlds in mind.

If you’re using CSMs, it is normal for their quality to degrade at a distance, all you can do is bias the distances (which will make nearby stuff look worse so far stuff can be better) or change their resolution (which effects the quality at all distances).

Distance field shadows are often used in addition to either of these methods, especially at far ranges.

---

<div class="post-metadata">

**Author:** ![CazBrecker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CazBrecker](https://forums.unrealengine.com/u/CazBrecker)\
**Post date:** [May 26, 2023, 1:10am UTC](https://forums.unrealengine.com/t/shadows-are-really-bad/1174826/9 "2023-05-26T01:10:32Z")

</div>

I am using vsm with distance field shadows, but as you can see from the above pictures, my shadows ar really bad from afar. I used all the methods for bad shadows from afar, maxed out all the values, but still the same result. I used this post [Shadows disappear with increased camera distance](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690) to help out with my problem, but to no avail. Apparently, in the latest version of unreal engine 5.2, it doesn’t work as seen here [Shadows disappear on the distance](https://forums.unrealengine.com/t/shadows-disappear-on-the-distance/569224) so is there any work around or should I report it as a bug
