Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question [URP] LineRenderer not receiving light depending on camera distance

Discussion in 'Universal Render Pipeline' started by jrwthrs, May 3, 2024.

  1. jrwthrs

    jrwthrs

    Joined:
    Nov 18, 2021
    Posts:
    1
    In URP, I'm trying to shine a realtime shadowless Light onto a LineRenderer with a URP/Lit material. I'm having an issue where it appears the Light stops working on any part of the LineRenderer that gets too close to the Camera. This issue only is present on the LineRenderer. It does not appear on other renderers with the same Material being lit by the same Light.

    In this clip there's a red Light on the player. the line and the platform both share the same URP/Lit material. The platform (mesh renderer) is lit as expected. The LineRenderer however, is experience some kind of culling.

    'Generate Lighting Data' is enabled for the LineRenderer.



    I've been tweaking about everything on the LineRenderer, the Material, and the Light to see if anything has any effect but no luck, if anyone has any insight on this issue it would be greatly appreciated.

    Cheers!