#Lights turn on and off depending of camera distance

1 messages · Page 1 of 1 (latest)

tawny basalt
#

I'm having this weird error where depending on the camera distance. they light up as you approach. I've tried a lot of things regarding culling, camera distance, far plane, turning on off volumes, etc, but nothing seems to work.

This effect happens both in-game mode and in the scene view. There are a lot of lights in the scene and its not baked.

Unity 6

ember verge
tawny basalt
#

URP, there are lot of lights on the scene, that is true

ember verge
# tawny basalt URP, there are lot of lights on the scene, that is true

With the forward rendered, the additional light count per object can only be increased to up to 8. If you need more than 8 lights affecting a single mesh in your scene, you are out of luck (with forward rendering). Cutting the meshes into smaller pieces and decreasing the range of the lights can help in decrease the light count per object. In your case it seems like you have so many lights it would be worth considering other render paths: the two alterantives to the default (forward) are deferred and forward+ which both support almost unlimited light counts with much less performance hit per added light. Forward+ is likely the one you should try first since it doesn't really have any limitations compared to the regular forward renderer unlike the deferred renderer which has quite some limitations.