# Stationary Directional light illuminates movable objects in shadow on mobile - is this a works as designed issue?

**URL:** <https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 15, 2022, 7:26am UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939 "2022-03-15T07:26:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 15, 2022, 7:26am UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/1 "2022-03-15T07:26:32Z")

</div>

I found, that movable objects (e.g. player character) get fully lit by by a stationary directional light, even if located behind a wall in areas, that are in shadow.

 ![question-simple](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/5/dc53480a51770c611e884c48a4d2ed982653c19b.png)  
The directional light simply ignores any static meshes casting shadows, even the character mesh itself (inside of mouth for example gets lit).  
This only happens in ES31 preview or on the mobile device, in D3D things look correct.  
The question: is this really the intended behaviour? I’m searching the web and trying endless options since almost one week.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 27, 2022, 8:57pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/2 "2022-03-27T20:57:07Z")

</div>

is the question still relevant?I have is an idea))

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 30, 2022, 7:33pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/3 "2022-03-30T19:33:33Z")

</div>

Hi, thanks for the reply. Yes, it is still relevant. [Here](https://forums.unrealengine.com/t/weird-shading-on-android-and-mobile-preview-es3-1/506063) is the post with my original problems. This one was just a reduced one to focus on a single issue. At the end of the original post you can see, that this issue is still not fully solved. Still happening on the real mobile device.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 30, 2022, 7:37pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/4 "2022-03-30T19:37:53Z")

</div>

check which profile you have selected  
 ![Screenshot_9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/6/d96e527929bbcef44b89cbf9f29d3f0db8acc265.png)

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 30, 2022, 7:49pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/5 "2022-03-30T19:49:36Z")

</div>

I gave it a try: On Play or Mobile Preview it is “Windows”.  
Just did a new build and deployed on the P9000: here it reports “Android\_MALI\_T8xx”  
Thanks for pointing into this direction, I will need to check the Device Profiles Stuff.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 30, 2022, 8:04pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/6 "2022-03-30T20:04:32Z")

</div>

all this can be checked very quickly so as not to think and search for a long time)) just turn off the plugin and see if the problem disappears

 ![Screenshot_10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/d/abd347c83cb52af88de488ae1c2a95c58a313765.png)

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 30, 2022, 8:32pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/7 "2022-03-30T20:32:01Z")

</div>

Cool, disabling the plugin - making a new build. Now the P9000 now reports “Android” as Device Profile Name. The “light in mouth” problem as mentioned in my other post is now gone.

So, disabling the plugin to detect the specific device seems to fall back to some standard Android Profile. Although, shouln’t device profiles be used to optimize for specific platforms? For the MALI\_T8XX I checked the Engine configs, there’s stuff mentioned like disabling EarlyFragmentTests and stuff like MaliMidgardIndexingBug… looks like some workarounds for specific problems, which now seem to be disabled.

At least, for testing, it really did make the problem disappear.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 30, 2022, 8:45pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/8 "2022-03-30T20:45:15Z")

</div>

that’s right) setting up profiles I understand you found) so now find out which parameter spoils your lighting )

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 30, 2022, 8:48pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/9 "2022-03-30T20:48:16Z")

</div>

> [@herb64](#):
>
> Android Profile. Although, shouln’t device profiles be used to optimize for specific platforms?

this is your game and your decision)) I have a very simple game so I did not touch the profile settings, just turned off this plugin

 ![Screenshot_12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/3/7731014ae38cb904734f714680e5999a02054c16.png)

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 30, 2022, 8:56pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/10 "2022-03-30T20:56:04Z")

</div>

I will go and do some experiments, but I believe, that keeping the plugin disabled might be the solution for me as well, as long I will not find any issues during testing. It is a quite simple game as well, and I hope, that I get access to 2 other phones from friends of mine in the near future.

Thanks so much for your help, I really appreciate and did learn again.

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 30, 2022, 9:13pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/11 "2022-03-30T21:13:28Z")

</div>

Might be, that I’m blind, but I cannot find any function to mark this as solved. Do you know, where Epic did hide that functionality in the Forum?

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 30, 2022, 10:51pm UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/12 "2022-03-30T22:51:27Z")

</div>

![Screenshot_16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/d/1cdb24a9c21a9068820519439be9ab09853e0221.png)  
 ![Screenshot_13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/b/05b6e77e25f836395e1736fdfbfde23456b0a9ec.png)  
 ![Screenshot_14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/d/5edeaaffa50c32522127c2df8aafaf7240127d23.png)  
this discussion) as far as I know, if you would create a Q&A you will see this  
 ![Screenshot_15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/5/535446a3d4344df5114bc81be354d7b81623e62d.png)

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [March 31, 2022, 6:59am UTC](https://forums.unrealengine.com/t/stationary-directional-light-illuminates-movable-objects-in-shadow-on-mobile-is-this-a-works-as-designed-issue/506939/13 "2022-03-31T06:59:15Z")

</div>

Ah, I see. My fault, I thought that selecting “Question” instead of “Discussion” in New Topic would make it a question that can be answered and marked as such later on. Actually, I already did this, while being in that Q&A section by chance. Thanks for clarifying this.
