# Jagged Shadow?

**URL:** <https://forums.unrealengine.com/t/jagged-shadow/232504>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0\
**Created:** [May 31, 2021, 3:39am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504 "2021-05-31T03:39:02Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShieldUp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shieldup/32/88708_2.png) [@ShieldUp](https://forums.unrealengine.com/u/ShieldUp)\
**Post date:** [May 31, 2021, 3:39am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/1 "2021-05-31T03:39:02Z")

</div>

Hi, I’m pretty new to Unreal Engine, I was playing around with the lighting in UE 5 and I noticed these Jagged shadows and I don’t know how to fix them. So far I’ve tried to increase the source radius and it didn’t seem to change anything. I suspect it might be caused by nanite triangulations but it’s producing the same shadows on non-nanite objects as well. Please help, thanks!

 ![微信图片_20210530191007](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/5/c5f833162ad918e97bd80ad5b11a2ba5b03fe9d2.jpeg)  
 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/f/7feebabf954afd41998267e3230b8af2c1bb4caf.jpeg)

---

<div class="post-metadata">

**Author:** ![FrankHindriks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrankHindriks](https://forums.unrealengine.com/u/FrankHindriks)\
**Post date:** [June 1, 2021, 3:55pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/2 "2021-06-01T15:55:56Z")

</div>

Got the same problem. It only appears when virtual shadow maps are on. Hope someone can help!

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [June 2, 2021, 8:05am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/3 "2021-06-02T08:05:03Z")

</div>

This might be it:

[https://docs.unrealengine.com/5.0/en-US/RenderingFeatures/VirtualShadowMaps/](https://docs.unrealengine.com/5.0/en-US/RenderingFeatures/VirtualShadowMaps/)

#### Shadow Resolution

VSMs provide significantly increased resolution compared to conventional shadow maps, but shallow light angles (or projective aliasing) and very large local lights can exhaust the available virtual resolution. This can present itself as box-like shadows and bias issues depending on the geometry’s surface. Directional Light clipmaps are much less susceptible to running out of resolution, but very narrow camera fields-of-view can eventually exhaust those as well.

There is no simple solution to solving projective aliasing with shadow maps. Even with VSMs, some care must be taken to avoid the worst cases.

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [June 2, 2021, 9:26am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/4 "2021-06-02T09:26:00Z")

</div>

![vsm_pixel](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/4/6494420c087bb1861aba7ac9a05994d9ce8237bb.jpeg) ![vsm_pixel_150](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/2/927eb65816c1f87d993e7d053989086b66a8201e.jpeg)

Increasing screen percentage does help with the shadows. But this is not a great solution.

---

<div class="post-metadata">

**Author:** ![iwa920](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iwa920/32/88716_2.png) [@iwa920](https://forums.unrealengine.com/u/iwa920)\
**Post date:** [June 14, 2021, 11:16am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/5 "2021-06-14T11:16:06Z")

</div>

How about “r.Shadow.Virtual.ResolutionLodBiasDirectional”  
Try Changing from -0.5 to lower value.  
In my case it improved.

If you are using a local light, try using  
“r.Shadow.Virtual.ResolutionLodBiasLocal”

 ![Shadow_Sample](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/2/32adcb95099fe23dae5e574555d0cfc3dd00ed51.jpeg)

---

<div class="post-metadata">

**Author:** ![ShieldUp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shieldup/32/88708_2.png) [@ShieldUp](https://forums.unrealengine.com/u/ShieldUp)\
**Post date:** [June 29, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/6 "2021-06-29T18:08:38Z")

</div>

This helped a lot! What does the value mean tho? What value would push it to the limit?

---

<div class="post-metadata">

**Author:** ![iwa920](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iwa920/32/88716_2.png) [@iwa920](https://forums.unrealengine.com/u/iwa920)\
**Post date:** [July 1, 2021, 8:44am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/7 "2021-07-01T08:44:23Z")

</div>

For example, you can decide the value while looking at Fps.I think you should decide according to your purpose.

I’m sorry I’m not good at English 😱

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [July 1, 2021, 9:58am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/8 "2021-07-01T09:58:19Z")

</div>

Thanks for this.

---

<div class="post-metadata">

**Author:** ![6ft6](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6ft6/32/88714_2.png) [@6ft6](https://forums.unrealengine.com/u/6ft6)\
**Post date:** [July 1, 2021, 1:39pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/9 "2021-07-01T13:39:16Z")

</div>

The jagged shadow is a cool effect this may prove to be useful. Thanks for reporting this.

---

<div class="post-metadata">

**Author:** ![NickRaposo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickraposo/32/88711_2.png) [@NickRaposo](https://forums.unrealengine.com/u/NickRaposo)\
**Post date:** [December 12, 2021, 8:08pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/10 "2021-12-12T20:08:15Z")

</div>

> [@iwa920](#):
>
> r.Shadow.Virtual.ResolutionLodBiasDirectional

Hey, I don’t know how to access this. I paste it into my command line, but I can’t change the value.

---

<div class="post-metadata">

**Author:** ![Monster01D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monster01D](https://forums.unrealengine.com/u/Monster01D)\
**Post date:** [January 3, 2022, 11:29am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/11 "2022-01-03T11:29:24Z")

</div>

bruh! you are amazing!

---

<div class="post-metadata">

**Author:** ![Famekrafts.com](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/famekrafts.com/32/249730_2.png) [@Famekrafts.com](https://forums.unrealengine.com/u/Famekrafts.com)\
**Post date:** [January 5, 2022, 11:14am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/12 "2022-01-05T11:14:56Z")

</div>

I was having these shadows when running an indoor scene in lumen.

When I switched to bake lighting and increased lightmap resolution, the shadows became smooth.

---

<div class="post-metadata">

**Author:** ![JennyChouABC1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JennyChouABC1](https://forums.unrealengine.com/u/JennyChouABC1)\
**Post date:** [August 18, 2022, 8:28am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/13 "2022-08-18T08:28:33Z")

</div>

Try turning off the virtual shadow maps (Beta) in project setting. Choose the shadow maps instead.

Project setting → Engine → Rendering -\>Shadows-\>Shadow map method -\>shadow maps -\>virtual shadow maps (Beta) X shadow maps O

---

<div class="post-metadata">

**Author:** ![D\_Artagnan69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_Artagnan69](https://forums.unrealengine.com/u/D_Artagnan69)\
**Post date:** [January 9, 2023, 10:41am UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/14 "2023-01-09T10:41:28Z")

</div>

Hey I’m having the same issue on UE4 mobile rendering. The shadows look fine in the engine preview but on my mobile I get really jagged shadows. I have tried to increase the shadow resolution and lightmap resolution as well but it doesn’t do anything. Is there any way to apply the “r.Shadow.Virtual.ResolutionLodBiasDirectional” command on mobile packaging and not just the viewport? I cannot find any solution to this and the shadows look really ugly. My only option is to remove the shadows entirely from my game which I really don’t want to do. Please help.  
Thank you.

---

<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:** [January 9, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/15 "2023-01-09T16:00:39Z")

</div>

UE4 doesn’t have virtual shadow maps, and it wouldn’t be supported on mobile anyway. You’ll probably need to look at cascade shadow settings if they are dynamic shadows.

---

<div class="post-metadata">

**Author:** ![D\_Artagnan69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_Artagnan69](https://forums.unrealengine.com/u/D_Artagnan69)\
**Post date:** [January 9, 2023, 4:24pm UTC](https://forums.unrealengine.com/t/jagged-shadow/232504/16 "2023-01-09T16:24:11Z")

</div>

Hey, thanks for the reply. The shadows I’m using are Modulated Dynamic shadows with a Stationary Directional Light, as that is the only way to get dynamic shadows on mobile. I have attached my light settings for reference.

 ![RGPackageTrial - Unreal Editor 09-01-2023 21_46_38](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/9/1e96dfa5329aca3376454f2dc2e7cc50c1bca182.jpeg)  
 ![RGPackageTrial - Unreal Editor 09-01-2023 21_49_55](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/a/e7a7b67ae9b9b63b8ca05a171d7f0dc286b10aac.jpeg)  
And also these are the Engine Preview vs Mobile device Shadow Render  
 ![UE4 Mobile Preview](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/e/f4ee74a95beefd74c9510f2197f3c737ed727fd6.jpeg)

 ![Android Mobile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/7/9d7e3ff428575a8c979a3cd77020ddb846fe3d5f.jpeg)

Any help would be much appreciated as I’m completely stuck with this issue.  
Thank you.
