# Shadow problem 

**URL:** <https://forums.unrealengine.com/t/shadow-problem/835974>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, Lighting, question\
**Created:** [March 31, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/shadow-problem/835974 "2023-03-31T17:19:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZsssssssWwwwwwww](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZsssssssWwwwwwww](https://forums.unrealengine.com/u/ZsssssssWwwwwwww)\
**Post date:** [March 31, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/shadow-problem/835974/1 "2023-03-31T17:19:52Z")

</div>

UE5 output from the Movie Render Queue  
What could be causing this problem?

![螢幕擷取畫面 2023-03-31 165113](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/a/20a5670c0e264b2f02383309861b86e4706bdb75.png)

![螢幕擷取畫面 2023-03-31 165309](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/f/29f218b640c95473b71cdf3bafade29801e75dc4.png)

> **[SST.mp4](https://drive.google.com/file/d/1F7411qgTjEHO7cMuUwvz0RteVDsU9Dc6/view?usp=sharing)**
>
> Google Drive file.

---

<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:** [March 31, 2023, 5:39pm UTC](https://forums.unrealengine.com/t/shadow-problem/835974/2 "2023-03-31T17:39:14Z")

</div>

Looks like the result of temporal accumulation. In other words, shadow samples are accumulated over multiple frames in order to get more accurate results. This can cause a difference in sample count for pixels that were occluded in previous frames that will appear as a ghosting effect. The fix will probably be increasing the spacial samples and decreasing the temporal sample accumulation.  
This has a heavy performance cost, but for MRQ that’s probably not a problem.
