- Home /
Is this a lightmapping and dynamic light limitation?
Hi all,
I have a scene with a few static prefabs, and I'm baking lighting into the scene. All is well. If I create a dynamic light, the objects don't get lit. I don't mean dynamic shadows. The object does not receive any of the dynamic lighting.
If I drag a new instance of the same prefab into the scene, after the light bake, the new prefab receives the dynamic lighting just fine. I'm using unity free, is this something I'm doing wrong or is this not possible?
Thanks, appreciate any of your time.
It depends on the shaders you're using.
Typically, shaders which reference lightmaps don't calculate dynamic lighting (as doing so would defeat the performance gained by using lightmaps).
Typically, shaders which use dynamic lighting don't pay attention to lightmaps (as the dynamic lighting calculations provide better, more "up to date" lighting in the render).
It's certainly possible to write a shader that combines the two, if that's something you're absolutely sure you'd like to do.
Your answer
![](https://koobas.hobune.stream/wayback/20220613153732im_/https://answers.unity.com/themes/thub/images/avi.jpg)