Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Lights contribute to volumetrics without light layers

Discussion in 'High Definition Render Pipeline' started by nehvaleem, Jan 25, 2023.

  1. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    429
    I didn't think that light with Light Layer set to Nothing will still affect volumetrics.



    Does that is the way it is supposed to work?
     
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    695
    Light layers selectively filter lights affecting objects. The volumetric fog is not affected.

    But you can disable the light contribution to the volumetric fog in the light inspector.
     
  3. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    429
    Yeah, I am aware of that.
    but imagine a situation where are 2 separate areas in the scene:
    - one main for the gameplay
    - second for the in-game menu (think all sorts of management menu like in ghost ot tsushima, wastelands 3 etc, when you have a 3d character, some enviro + user interface).

    In the in-game menu area there are only objects with different light layers that can be lit independently from the main gameplay scene. How to tackle directional light (even worse, with high volumetric multiplier) and prevent it from altering the look of the in-game menu environment without disabling volumetric on this light completely?