# Can't get foliage to be lit properly and android ES3.1 mode

**URL:** <https://forums.unrealengine.com/t/cant-get-foliage-to-be-lit-properly-and-android-es3-1-mode/513179>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4, UE4-27, question\
**Created:** [April 5, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/cant-get-foliage-to-be-lit-properly-and-android-es3-1-mode/513179 "2022-04-05T16:44:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcells44](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marcells44](https://forums.unrealengine.com/u/Marcells44)\
**Post date:** [April 5, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/cant-get-foliage-to-be-lit-properly-and-android-es3-1-mode/513179/1 "2022-04-05T16:44:15Z")

</div>

Hello!

I’m developping an app for the Quest 2 HMD. For performance, I want the lighting to be fully static. It takes place in a forest, and I am struggling with the foliage lighting, either it is fully black (with “Default” as Lightmap Type in the Static Mesh Foliage) or uniformly lit, like a sort of average (with the “Force Volumetric” option). It looks like the other meshes don’t cast shadows on the grass.

The materials are “2 sided foliage” ; the directional and sky lights have “cast shadows” checked ; the foliage has “cast shadows” (both dynamic and static) checked too ; and I’m not using the Forward Renderer.

This is just a test level to reduce building times :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/c/6bc64e8a6fec7ddb696a658fa1c37eabd7e491b7.jpeg)

Maybe there are other things I did wrong, but I’m not sure.  
Thanks a lot in advance, I have spent days tinkering with the settings here, to no avail.

Thibault

---

<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:** [April 9, 2023, 5:00pm UTC](https://forums.unrealengine.com/t/cant-get-foliage-to-be-lit-properly-and-android-es3-1-mode/513179/2 "2023-04-09T17:00:24Z")

</div>

Hey, how did you get the foliage to cast Static Shadows? I am making a game for mobile and used foliage painter to make a forest but that foliage doesn’t cast any static shadows. Only dynamic shadows are cast, regardless of the directional light’s status. Is there any project setting that I need to change to get static shadows from Foliage? Please tell me how to do it.  
Thank you.
