# Any ideas what's causing these shadows to be so jagged?

**URL:** <https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486>\
**Category:** World Creation\
**Tags:** Water, unreal-engine, UE5-0, question\
**Created:** [August 11, 2022, 5:20pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486 "2022-08-11T17:20:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeefyViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BeefyViking](https://forums.unrealengine.com/u/BeefyViking)\
**Post date:** [August 11, 2022, 5:20pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/1 "2022-08-11T17:20:11Z")

</div>

This is a part of my game where you are overlooking the ocean from a cliff and the shadows are incredibly jagged. The light source is a directional light (sun) and I have tested the same shadows on a cube mesh and they looked much softer and nice. Making me think the issue is with the water maybe? I am using the ocean body default of the water plugin for Ue5. Any help would be appreciated!

(p.s. The world that is casting shadows isn’t fully developed so that’s why they look disjoined. I’m only interested in the shadows not looking like giant pixels.)

 ![2022-08-11 13_07_35-Museum - Unreal Editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/1/1716df77e87006354b7befad50b61726b56d5501.jpeg)

---

<div class="post-metadata">

**Author:** ![BeefyViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BeefyViking](https://forums.unrealengine.com/u/BeefyViking)\
**Post date:** [August 11, 2022, 6:05pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/2 "2022-08-11T18:05:04Z")

</div>

Update: If I put a big mesh in the water or near it, it improves all the shadows in the water. The shadows also look much better on it than on the water.

 ![2022-08-11 14_02_29-Museum - Unreal Editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/5/165d5d6e7b418b459a837a3d56cbd6f4d5f49726.jpeg)

---

<div class="post-metadata">

**Author:** ![BeefyViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BeefyViking](https://forums.unrealengine.com/u/BeefyViking)\
**Post date:** [August 11, 2022, 6:21pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/3 "2022-08-11T18:21:04Z")

</div>

Here’s a close up. Shadow looks bad on water and good on mesh underwater.

 ![2022-08-11 14_19_41-Museum - Unreal Editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/3/423caad8735f3be7e2bcb99ec4e3e75a58d4db42.jpeg)

---

<div class="post-metadata">

**Author:** ![AngelBieliukas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angelbieliukas/32/88714_2.png) [@AngelBieliukas](https://forums.unrealengine.com/u/AngelBieliukas)\
**Post date:** [August 11, 2022, 6:51pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/4 "2022-08-11T18:51:02Z")

</div>

Hello !

Usually this happens when you try to bake lights in a giant object.  
Is your ocean a giant plane? In any case, I recommend you to use multiple planes for the same reason. The Lighmap is calculated by mesh so, a giant plane causes the lightmap to scale immensely.

Or, to use a Stationary/Movable Light for the shadows, not a Static Light.

I hope this help you!

---

<div class="post-metadata">

**Author:** ![BeefyViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BeefyViking](https://forums.unrealengine.com/u/BeefyViking)\
**Post date:** [August 11, 2022, 7:04pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/5 "2022-08-11T19:04:38Z")

</div>

Thanks for the reply. The ocean was created using the water plugin so I’m not sure if it’s a giant plane. How can I tell?

My sun is set to moveable so wouldn’t that mean it’s not a static light?

---

<div class="post-metadata">

**Author:** ![AngelBieliukas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angelbieliukas/32/88714_2.png) [@AngelBieliukas](https://forums.unrealengine.com/u/AngelBieliukas)\
**Post date:** [August 11, 2022, 7:24pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/6 "2022-08-11T19:24:39Z")

</div>

For what I have read, It is not that there is a problem with the shadows in the water plugin, but that several users have experienced problems with the jagged shadows in Unreal 5.

The plugin should be ok, but if you still want to know how to be sure if it’s a giant plane, you can change the View Mode of the Viewport from “Lit” to “Brush Wireframe”  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/f/95f4476be34f53e0d5f0d9ae5657fb08f9a571a0.png)  
_(Sorry the UE4 screen, in UE5 is the same)_

If you see a lot of squares, then it’s subdivided, if you see only two giant triangles then is only a giant plane. In any case since it is a plugin there is no way to know for sure how it’s made. Just reading the documentation

Here I found a community tutorial about jagged shadows in UE5 to see if it works for you:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/f/dbff6f5a6b4b480ef46461dc74a2115ccacf9d92.jpeg "Fixing the Ugly Shadow Issues in Unreal Engine 5") ](https://www.youtube.com/watch?v=F3XSKXhIAuU)

I hope it helps you!

---

<div class="post-metadata">

**Author:** ![BeefyViking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BeefyViking](https://forums.unrealengine.com/u/BeefyViking)\
**Post date:** [August 11, 2022, 11:06pm UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/7 "2022-08-11T23:06:49Z")

</div>

Thank you for the thorough response. This video actually solved one of my problems although not the main one. I will continue to dig around!

---

<div class="post-metadata">

**Author:** ![Lexadoro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lexadoro/32/561427_2.png) [@Lexadoro](https://forums.unrealengine.com/u/Lexadoro)\
**Post date:** [October 10, 2022, 9:39am UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/8 "2022-10-10T09:39:43Z")

</div>

Still have the same issue

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/0/050f38d703f57cf781fb2edeff8ec5383f51c72d.jpeg)  
You found any solution?

---

<div class="post-metadata">

**Author:** ![Jordan\_Ariel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jordan\_Ariel](https://forums.unrealengine.com/u/Jordan_Ariel)\
**Post date:** [July 26, 2023, 5:16am UTC](https://forums.unrealengine.com/t/any-ideas-whats-causing-these-shadows-to-be-so-jagged/626486/9 "2023-07-26T05:16:10Z")

</div>

took some sleuthing but here is the solve @Lexadoro @BeefyViking

> [@Blocky shadows on Single Layer Water](https://forums.unrealengine.com/t/blocky-shadows-on-single-layer-water/1151034):
>
> This has been an issue forever it seems. Is there any way to fix these blocky shadows on water yet, without resorting to raytracing? I looks like they fixed it for Fortnite as seen in the video here, but it certainly isn’t fixed in 5.2: [State of Unreal | GDC 2023 | Epic Games - ESRB: RP to M - YouTube](https://youtu.be/teTroOAGZjM?t=14013) There is a cvar r.Water.SingleLayer.DepthPrepass, but is seems to be read only. How would I go about getting the water depth prepass to work?
