# Light function does not work when "Cast Shadows" or "Cast Dynamic Shadows" is disabled

**URL:** <https://forums.unrealengine.com/t/light-function-does-not-work-when-cast-shadows-or-cast-dynamic-shadows-is-disabled/412087>\
**Category:** Rendering\
**Tags:** Shadows, light-function, Forward-Rendering, unreal-engine, Lighting, question\
**Created:** [December 12, 2017, 5:53pm UTC](https://forums.unrealengine.com/t/light-function-does-not-work-when-cast-shadows-or-cast-dynamic-shadows-is-disabled/412087 "2017-12-12T17:53:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fc6e0fe5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fc6e0fe5](https://forums.unrealengine.com/u/anonymous_user_fc6e0fe5)\
**Post date:** [December 12, 2017, 5:53pm UTC](https://forums.unrealengine.com/t/light-function-does-not-work-when-cast-shadows-or-cast-dynamic-shadows-is-disabled/412087/1 "2017-12-12T17:53:35Z")

</div>

For my current project I’m using a MediaTexture as LightFunction to light a room. This works great as long as the lightsource (in my case a Spotlight) is dynamic and has “Cast Dynamic Shadows” and “Cast Shadows” enabled. However as soon as I disable the dynamic shadowing on the light the LightFunction stops working and the Spotlight behaves as if it doesn’t have a LightFunction assigned.

I could live with dynamic shadowing but unfortunately it’s way too heavy in this scene. It’s a VR project (with Forward Shading enabled) and I’m losing 60 frames if I enable dynamic shadows on the light, so this is not an option unfortunately.

Is this intended behaviour or a bug? Or is it because of Forward Shading? Are there alternatives I could try out?

---

<div class="post-metadata">

**Author:** ![Orion\_78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orion\_78](https://forums.unrealengine.com/u/Orion_78)\
**Post date:** [October 5, 2018, 4:14pm UTC](https://forums.unrealengine.com/t/light-function-does-not-work-when-cast-shadows-or-cast-dynamic-shadows-is-disabled/412087/2 "2018-10-05T16:14:44Z")

</div>

see Known Issues & Common Questions

> **[Light Functions](https://docs.unrealengine.com/4.27/en-US/BuildingWorlds/LightingAndShadows/LightFunctions/)**
>
> Lighting projected using a Material as the source.
