# Stationary Directional light not giving sharp dynamic shadow of the leaves

**URL:** <https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410>\
**Category:** Rendering\
**Tags:** shadow, unreal-engine, question\
**Created:** [September 16, 2020, 5:56am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410 "2020-09-16T05:56:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevenman0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sevenman0](https://forums.unrealengine.com/u/sevenman0)\
**Post date:** [September 16, 2020, 5:56am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/1 "2020-09-16T05:56:14Z")

</div>

Hi,  
I’m using the latest version of unreal which was 4.25.3 Btw, I have a static actor which is a tree with animated foliage using the material. i get the only tree without shadows of the leaves.

[](https://i.imgur.com/23E0RHw.jpg)

After that, i enabled the following screenshot. “Cast Dynamic Shadow as mask”.

[](https://i.imgur.com/g2gwsQh.jpg)

And this is what i get in the viewport.

[](https://i.imgur.com/jml04Ms.jpg)

Now i make my sunlight Movable. and this is what i get.

[](https://i.imgur.com/Dma4JYi.jpg)

After increasing value 3 to 4, this is what i get.

[](https://i.imgur.com/u2WlYAR.jpg)

Same settings with the stationary light I get this

[](https://i.imgur.com/BzV1ht9.jpg)

realtime looks:

[Stationary light][7]

[Dynamic light][8]

**If you know how to improve shadows of the leaves of stationary lights, Please Share.**

---

<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:** [September 16, 2020, 11:44am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/2 "2020-09-16T11:44:00Z")

</div>

If you want stationary lights and sharp shadows for nearby objects, strangely enough in the directional light details change ‘dynamic shadow distance stationary light’ to about 2500. ( After building light ).

---

<div class="post-metadata">

**Author:** ![sevenman0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sevenman0](https://forums.unrealengine.com/u/sevenman0)\
**Post date:** [September 17, 2020, 3:47am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/3 "2020-09-17T03:47:18Z")

</div>

One strange things here is: this is the only issue of directional light. other point light or spot light actor behave as expected. i mean have sharp animated shadow.

[](https://i.imgur.com/9C585Ak.jpg)

And “dynamic shadow distance” is diabled ot grayed out.

---

<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:** [September 17, 2020, 7:03am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/4 "2020-09-17T07:03:51Z")

</div>

Is it set to stationary?

---

<div class="post-metadata">

**Author:** ![sevenman0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sevenman0](https://forums.unrealengine.com/u/sevenman0)\
**Post date:** [September 17, 2020, 10:04am UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/5 "2020-09-17T10:04:30Z")

</div>

Yap.! …

---

<div class="post-metadata">

**Author:** ![sevenman0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sevenman0](https://forums.unrealengine.com/u/sevenman0)\
**Post date:** [September 17, 2020, 1:36pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/6 "2020-09-17T13:36:22Z")

</div>

**The SOlution:** Build lightmass.

---

<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:** [September 17, 2020, 1:53pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-not-giving-sharp-dynamic-shadow-of-the-leaves/471410/7 "2020-09-17T13:53:59Z")

</div>

Well, I sort of assumed you had done that… 😉
