Search Unity

Question Shader Graph Depth Fade node in VR

Discussion in 'Shader Graph' started by galamot-shaku, Jun 19, 2021.

  1. galamot-shaku

    galamot-shaku

    Joined:
    Apr 25, 2015
    Posts:
    3
    Hello there I made a water shader with shadergraph using the Depth Fade Node for the depth and foam effect where the objects intersect. So far is working pretty well in the scene view, however the effect doesn't work when in VR mode.
    Capture2.PNG

    I believe this is due to something related to the screen position node only taking into account a single camera or something similar. I was wondering If anyone knows any work around.
    Capture.PNG
     
  2. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195