Lights that stop illuminating

Hello.

I have a problem with the lights. Depending on the position of the player in the scene, the light stops illuminating although its light component remains active. Does anyone know what causes this effect?

This video shows the error.

Thanks.

URP? And Forward or Forward+?

In Forward rendering, there is a maximum number of real-time lights that can render at the same time. When there are too many lights, I think the renderer prioritizes lights that are closest to the camera but I’m not exactly sure how it works.

I think you can change the limit in quality settings, but the reason this limit exists is because each light has a significant performance impact.

If you absolutely need lots of real-time lights, there are also Forward+ and Deferred Renderers designed to handle lots of lights, but there are trade-offs so you’ll want to research these.

1 Like

Hi, thanks for replying everyone.

With the lights in Bake Mode, changing in the URP inspector tab → Lighting → Per Object limit to 4 they no longer turn off (it was at 2).

Thanks.