Maximum number of lights in scene

Hi all,
I need a lot (let’s say 100) spheres in scene. Every sphere has to emit light in the background plane.
This spheres have to interact with an object controlled by user. So when the object is near a sphere, that sphere has to go to the opposite direction…

The problem is that agter 3-4 sphere the light start to disappear.

In the image you can see my situation:

The object is a sphere with a light attached…is there a limit somewhere in the number of lights? Can I use 100 realtime lights? I’m not good with lightning options, can you help me?

Thank you

You can bump up Pixel Light Count in quality settings (Project Settings → Quality)

3 Likes

Thank you! It worked.

You might want to use Deferred Rendering instead.

1 Like

That option isn’t available with a URP project. Any idea how to get more lights in URP?

Deferred Rendering is still in development for URP: See this thread: https://discussions.unity.com/t/800218
So if you care about many light sources, you should considering using HDRP.

worth noting that hdrp uses “cluster and tile”, so you’ll still get artefacts if you have too many dynamic lights.