Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug (URP) Point lights that intermittently turn off as the player / camera passes through

Discussion in 'General Graphics' started by andr3y38, Dec 2, 2023.

  1. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    11
    As it is said in the title, while camera or player pass through or at certain distance there is a glitch with the point light. I want to mention that the lights are close to eachother. I tried... mixed / bake / realtime mode and I have same issue.
    I built a video scene to show.
    Watch carefully how some of the lights change.
    Any advice I would really appreciate!

    Video:

    Especially at 0:19 is best to view the issue.
     
  2. POOKSHANK

    POOKSHANK

    Joined:
    Feb 8, 2022
    Posts:
    141
    unity will choose which light to use if there is more than 8 casting on an object by default, this choice is made by a combination of the light's perceived brightness and location in the camera's frustum. this looks like a job for deferred rendering or splitting up meshes.
     
    arkano22 likes this.
  3. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    11
    Yes, I switched all lights to bake and solved the issue.
     
    POOKSHANK likes this.
  4. dmmb1426

    dmmb1426

    Joined:
    Dec 10, 2023
    Posts:
    1
    Refraction of light projected image , re-stich patchwork