Search Unity

Bug Spotlight culling broken?

Discussion in 'Universal Render Pipeline' started by bluescrn, Jun 6, 2022.

  1. bluescrn

    bluescrn

    Joined:
    Feb 25, 2013
    Posts:
    642
    Edit: Now resolved. Not a bug. The problem light had been copy+pasted from a real scene into the test scene. Creating a new light and manually setting it up didn't exhibit the same problem.

    After enabling the debug inspector to try and track down the difference, I found the 'Use bounding sphere override', which had somehow been enabled for the problem light, causing the problem.

    ---------------

    Is anyone else having problems with spotlights disappearing when close to/looking away from the light?



    URP 12.1.6, Unity 2021.3.2f1

    It's not a 'too many lights' issue - test scene just has directional and one spotlight.

    (It was initially seen it in a much more complex scene, where switching between forward and deferred lighting didn't seem to affect it)
     
    Last edited: Jun 6, 2022