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

Density Volume - does not render

Discussion in 'High Definition Render Pipeline' started by JJ_FX, Apr 16, 2020.

  1. JJ_FX

    JJ_FX

    Joined:
    Mar 19, 2015
    Posts:
    76
    Hi,

    So I just installed HDRP and I'm trying Density Volumes. But they don't render out. Is there a dependency for density volumes except HDRP that Im missing?

    EDIT: Ok I used DefaultSceneRoot prefab and it works. It looks like it need that Sky and Fog Volume object to render out
     
    Last edited: Apr 16, 2020
    jjbish likes this.
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi,

    You just need to have any game object with a Volume, which you could make global too. This could be any object you have. Then you just need Fog Override added, with Volumetric Fog enabled. After that your Density Volumes will show up.

    And you of course need to have volumetric lighting enabled in your HDRP Asset (Lighting/Volumetrics.)

    Here's an example setup,
    Volume on a game object in your scene, it's set to be global in this case.
    hdrp_volumetrics_1.png

    Fog Override, with Volumetric Fog enabled.
    hdrp_volumetrics_2.png

    HDRP Asset with Volumetrics enabled.
    hdrp_volumetrics_3.png
     
    JJ_FX likes this.