Search Unity

Question Do Local Volumetric Fog volumes work with HDRP Water System underwater?

Discussion in 'High Definition Render Pipeline' started by JohnPet, Jan 11, 2024.

  1. JohnPet


    Aug 19, 2012
    Hey there, I'm trying to use a local volumetric fog object (HDRP) which shows fine above and under an Inifinite HDRP water surface.

    However, when the Underwater option is ticked in the Water Surface, the local fog no longer shows while the camera is underwater.

    The documentation does not yet provide an answer, and I was wondering what's wrong.
    Last edited: Jan 11, 2024
  2. chap-unity


    Unity Technologies

    Nov 4, 2019
    Hey, nothing's technically wrong :).
    It doesn't really make sense to have fog underwater so it's disabled when underwater is evaluated.
    When underwater, there's a simplified fog implementation in the underwater shader. It can be controlled via the absorption distance multiplier parameter.

    If you want to add some stuff just underwater, you can always use a custom pass and the underwater node in the shader graph. There's an example in the HDRP water sample in the Underwater scene.