Lighting for instantiated level sections (modular levels)

Hi,
I’m working on level generation by instantiating hallway sections as the player advances. The problem that I am encountering is that when I add new sections, the lighting doesn’t update. I’m only using point lights with default settings.

The only particular thing I can think of is that the hallway is made from a model with normals pointing inwards.

I was able to link the problem to the instantiation of new hallway sections since if I manually added new point lights after the instantiation at run time, they would work just fine.

Here is what it looks like:

The lit part is the initial hallway in the scene and the dark section the the newly added section.

How can I fix this? Thanks in advance!

Are you using baked lighting, or is this only realtime?

I haven’t changed any settings on the point lights, so realtime.

Is this HDRP, URP or BiRP? The only thing I can really think of that might cause this is using cached shadow maps.

Yes, that was my guess as well… The light maps seem to be cached but I don’t know how to modify that behavior. I am using BiRP.

BiRP doesn’t have cached shadow maps, so I’m not sure in this case. Maybe another forum-goer knows. Otherwise I’d submit a bug report.

Alright, thanks for trying to help!