Search Unity

2D lights are rendered to overlay camera with no culling mask

Discussion in '2D' started by nicmarxp, Feb 20, 2021.

  1. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    406
    I have an overlay camera set it's culling mask to only render some UI elements, but it renders 2D lights too, even with culling mask set to None. Is this the intended behavior of an overlay camera?

    The result is that all lights are twice as bright, and I'm not sure if this is consistent on all platforms. It seems like a bug to me.

    Also I'd like to hide gizmos for the overlay camera, but at least they are not visible if the ortho size is the same for both cameras.

     
  2. alleballe90

    alleballe90

    Joined:
    Jan 9, 2017
    Posts:
    7
    bump. this is a major issue. devs please look into this
     
  3. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    406
    Can you confirm this still exists in the latest 2020.2 version? I haven’t had time to test it yet.