Search Unity

Resolved PDO(Pixel Depth Offset) in Pallax Occlusion Mapping Ndoe

Discussion in 'Shader Graph' started by NarberalTools, Jun 27, 2021.

  1. NarberalTools

    NarberalTools

    Joined:
    Jul 8, 2019
    Posts:
    63
    How to use Pixel Depth Offset to create this effect?
     

    Attached Files:

  2. lilacsky824

    lilacsky824

    Joined:
    May 19, 2018
    Posts:
    171
    As far as I know you can only do PDO with shader graph when you use HDRP.
    If you want use PDO in URP you need write shader manually or modified generated code.
    Like this one I wrote.
     
  3. MajorWolph

    MajorWolph

    Joined:
    Apr 28, 2018
    Posts:
    24
    Sorry for opening up an old thread. Would you by any chance be able to provide the adjusted shader code on how this can be achieved with URP? I'm trying to implement something similar but am having trouble figuring out what and where it should be adjusted. I'm pretty sure it's something with SV_Depth but that's about how far Ive gotten