# Weird shadows on foliage

**URL:** <https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [July 31, 2021, 5:46am UTC](https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192 "2021-07-31T05:46:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott1391990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scott1391990](https://forums.unrealengine.com/u/scott1391990)\
**Post date:** [July 31, 2021, 5:46am UTC](https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192/1 "2021-07-31T05:46:09Z")

</div>

I am using some bamboos from Bamboo Valley and I am getting some weird shadows. I have tried foliage instance and placing single static meshes as ell but both are giving me the same problem while the same mesh is fine in the Bamboo Valley project. I haven’t changed any setting under static mesh editor.

Two images at the top are from Bottom Valley while the bottom 2 are from my project.

 ![BambooValley1](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/86f8c098f3cd53b54868a2f32ee56d06b6c28431.jpeg)

 ![BambooValley2](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/2/a2dec6c6217300858bdc1518cee7352fd0348456.jpeg)

 ![My Foliage Instance actor](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/8/2874e0a480cbbd92980cbab9ee5d8364dc8bf74e.jpeg)

 ![My Single static mesh assets](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/0/505c7aa8178883fed19187a5eea9907368a9c8f7.jpeg)

Any ideas why it is happening?  
I am using UE 4.26 with GPULightmass, static skylight with HDRI, movable sun and static mesh for bamboos

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [August 3, 2021, 11:35pm UTC](https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192/2 "2021-08-03T23:35:27Z")

</div>

Do you use ray tracing? Meshes with vertex shaders which let the mesh move from wind need a tick box to be activate called ‘evaluate world position’ to work proper.

I don’t know of any way to make that work for foliage actors. The only other way would be to disconnect the world position offset in the material of the bamboo.

Not sure if that’s causing the problem but you could give it a try.

---

<div class="post-metadata">

**Author:** ![scott1391990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scott1391990](https://forums.unrealengine.com/u/scott1391990)\
**Post date:** [August 6, 2021, 11:52am UTC](https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192/3 "2021-08-06T11:52:14Z")

</div>

Thanks for your reply.  
I am using raytracing but the sun is not casting raytraced shadows. I already disabled it.  
Also, Raytracing is only enabled for reflections and nothing else.

It’s strange that it isn’t working by default as it’s working in the “BambooValley” but not in my project. Anyways, I just tried your method of ticking the “Evaluate World Position Offset” parameter and did a test but the issue is still there.  
Check the below image.

 ![Evaluate World Pos Offset](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/e/6ebdc1f9c960cdb55ab269a7438162ad43c76ce8.jpeg)

I also tried your other method by disconnecting the “World Position Offset” node in the material but still have the problem.  
Check the below image for that.

 ![Disconnected World Pos Offset](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/a/5a685323c539dfa7c75f2de40adb743b11e3670b.jpeg)

---

<div class="post-metadata">

**Author:** ![sflodstroem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sflodstroem](https://forums.unrealengine.com/u/sflodstroem)\
**Post date:** [September 28, 2021, 11:27am UTC](https://forums.unrealengine.com/t/weird-shadows-on-foliage/243192/4 "2021-09-28T11:27:58Z")

</div>

It looks like a problem with the normals, foliage usually have custom normals baked, try exporting/importing them into a 3D program and reset the normals on the planes and see if it looks better.
