Search Unity

VFX Graph Shader Receives Fog

Discussion in 'Visual Effect Graph' started by CitronMaane, Mar 3, 2021.

  1. CitronMaane

    CitronMaane

    Joined:
    Nov 16, 2016
    Posts:
    15
    Hi!
    I'm having this issue with the VFX shader asset...
    A normal HDRP transparent Shadergraph shader has the "Receive Fog" toggle, but on a Shader Graph that is used on visual effects don't have this option.
    The particle strip quad should be invisible. It has a HD Scene Color directly in it's base color, but it is colored by the fog.
    The mesh above it is using the same HD scene color, where it toggle the receive fog on and off for the comparison.
    VFX Graph HDRP unlit.png
    nothing to see.gif
    Is there some way to control if a VFX should receive fog or not?
     
  2. Vita-

    Vita-

    Unity Technologies

    Joined:
    Jul 2, 2019
    Posts:
    121
    Hey @CitronMaane,

    There's no direct solution to this at the moment, however we're working on VFX Graph integration with Shader Graph that will resolve the issue you encounter as it fully grants accessibility to shaders of HDRP.

    Anyway, a few workarounds that might help:
    1. If there's only fog and no other Post-Processing adjustments you can try Transparent Render Queue > AfterPostProcessing (setting that can be found in Output Context Inspector)
    2. You could also try Exposure Weight setting (can be found in Output Context Inspector). Once checkbox is ticked, setting appears in the Output context where it can be tweaked.

    If you have any questions or I can be of further help, let me know.

    Cheers
     
    CitronMaane likes this.
  3. CitronMaane

    CitronMaane

    Joined:
    Nov 16, 2016
    Posts:
    15
    Thanks for the help! I'll try it out!
     
    Vita- likes this.