# Foliage shadow is not working correctly, how to fix it?

**URL:** <https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027>\
**Category:** Rendering\
**Tags:** shadow, unreal-engine, trees, Foliage, question\
**Created:** [June 18, 2021, 7:05am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027 "2021-06-18T07:05:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TPAKC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tpakc/32/590265_2.png) [@TPAKC](https://forums.unrealengine.com/u/TPAKC)\
**Post date:** [June 18, 2021, 7:05am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027/1 "2021-06-18T07:05:38Z")

</div>

I tried to create foil trees and the shadow is not working correctly, does anyone know how to fix it? I tried in different ways, but it only works correctly when you add each static mesh separately, and any folded instances do not work correctly, here is the problem with the video

[![]( " - YouTube") ](https://www.youtube.com/watch?v=uSnuL3x0ZXw)

Please, help!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 18, 2021, 8:43am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027/2 "2021-06-18T08:43:49Z")

</div>

I’d say it’s something hinky with that tree mesh. Have you tried a different mesh?

---

<div class="post-metadata">

**Author:** ![TPAKC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tpakc/32/590265_2.png) [@TPAKC](https://forums.unrealengine.com/u/TPAKC)\
**Post date:** [June 18, 2021, 9:45am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027/3 "2021-06-18T09:45:20Z")

</div>

I have 16 types of trees, the foliage is made of planes, when I set one tree directly to the level, then the shadow is always there, when I use the foliage system, then as you can see in this video, the shadow does not work correctly.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=uKUcACO5HlI)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 18, 2021, 9:52am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027/4 "2021-06-18T09:52:26Z")

</div>

Have you by any chance edited the Dynamic Shadow Distance on the directional light?

![341745-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/c/35cf196b44a4eb4145330ecf9c205bcd4079b5f2.jpeg)

---

<div class="post-metadata">

**Author:** ![TPAKC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tpakc/32/590265_2.png) [@TPAKC](https://forums.unrealengine.com/u/TPAKC)\
**Post date:** [June 18, 2021, 9:59am UTC](https://forums.unrealengine.com/t/foliage-shadow-is-not-working-correctly-how-to-fix-it/485027/5 "2021-06-18T09:59:31Z")

</div>

I use Sunsky which offers by default. I checked the given parameter, here are the values.

 ![341746-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/9/6c90f31a1b1d15b05fa5d4dc2d97f4805b13b1f9.jpeg)

[Oren\_elf\_tree06.FBX - Google Drive](https://drive.google.com/file/d/1xHte8AYeOHAEwkERs67eKIRdagGd7bcG/view?usp=sharing) I have uploaded the FBX tree, you can check if you have time. Thank you.
