Search Unity

Lights Seen through Walls with Volumetric Fog

Discussion in 'High Definition Render Pipeline' started by qazwerty104, Jan 4, 2020.

  1. qazwerty104

    qazwerty104

    Joined:
    Jun 29, 2016
    Posts:
    1


    Hi!

    I've been messing around with the HDRP for a few days and I'm trying to implement it in a little demo project.

    Whenever I use the volumetric fog, however, the player ends up being able to see some of the lights through walls (both point and spotlights shown in the picture).

    I have searched for a solution off and on for the past few days, but still no luck. Is there any way to prevent this from happening?
     
  2. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Report the bug
     
  3. SwathingSoap

    SwathingSoap

    Joined:
    Jul 4, 2018
    Posts:
    12
    still have this issue?
     
  4. tuinal

    tuinal

    Joined:
    Dec 14, 2012
    Posts:
    17
    It's not really a bug, it's a limitation in the volumetric approach. A general 'fix' would have a lot of performance implications.

    The simple solution is to turn shadows on for the lights. A more performant solution is to bake cookies for the lights, and/or set their distance to a lower radius.

    It's a constant pain for a lighting artist since shadows are expensive and volumetrics are pretty, but it's a necessary thing to work round by careful light placement and tuning.