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

Question Volumetrics with Baked Lights - Is it Possible?

Discussion in 'High Definition Render Pipeline' started by soleron, Mar 15, 2021.

  1. soleron

    soleron

    Joined:
    Apr 21, 2013
    Posts:
    568
    Both in 2019 LTS and 2020.2.x using HDRP, it appears that Unity can't use baked lights with volumetrics.

    The moment the lights get baked, the volumetrics are gone.
    Is there a way to use both?

    Thank you.
     
    Last edited: Mar 15, 2021
  2. SkyTheDragon63

    SkyTheDragon63

    Joined:
    Jul 6, 2021
    Posts:
    3
    Did you found any fix for this?
     
  3. soleron

    soleron

    Joined:
    Apr 21, 2013
    Posts:
    568
    Sadly, no. And as you see nobody replied either. :/
     
  4. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,136
    You could bake a light, then copy paste it, turn it Realtime, give it a light layer with no meshes, that way it only effects volumetrics.

    You can also try disabling diffuse/specular, I believe then it also only effect volumetrics.
     
    soleron likes this.
  5. Onigiri

    Onigiri

    Joined:
    Aug 10, 2014
    Posts:
    470
    Totally possible with baked adaptive probe volume. You can even have objects with emissive material to emit volumetric lighting with probe volumes.
    Here's example baked emissive cube (no bloom only volumetrics)
    upload_2023-7-9_12-17-3.png
     
    Last edited: Jul 9, 2023
    Gasimo, soleron and Kabinet13 like this.
  6. RevC2

    RevC2

    Joined:
    May 2, 2021
    Posts:
    48
    It really doesn't need any fix, just use a baked light for lightmaps and a realtime light with "affect diffuse" and "affect specular" turned off for volumetrics only.
     
    ElevenGame and soleron like this.
  7. soleron

    soleron

    Joined:
    Apr 21, 2013
    Posts:
    568
    Thank you.
    I thought of that, but, doesn't it affect performance?
     
  8. RevC2

    RevC2

    Joined:
    May 2, 2021
    Posts:
    48
    It depends if you are worried about the two lights, or by the fact that you will use a realtime light. You will use two lights but since one is baked, it doesn't cost you anything. For the volumetric light, you need a realtime light no matter what, so the only cost will be that realtime light that you can't really recreate otherwise.
     
    soleron likes this.