Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is there parallax occlusion mapping for HDRP

Discussion in 'Graphics Experimental Previews' started by OfficialHermie, Jul 19, 2019.

  1. OfficialHermie

    OfficialHermie

    Joined:
    Oct 12, 2012
    Posts:
    585
    Hello!

    I would like to know if there's parallax occlusion mapping available for HDRP.

    Thank you!
     
  2. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Yes, you can use this by enabling displacement as well as depth offset (this gives you shadows and depth with contacting surfaces) on the Lit shader and also as a node in shader graph (depth offset in the master node settings). The node only became available from 2019.1 forward.
     
  3. OfficialHermie

    OfficialHermie

    Joined:
    Oct 12, 2012
    Posts:
    585
    @Grimreaper358 You mean that I should use "Pixel displacement" where it says "Displacement Mode", right?
     

    Attached Files:

  4. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Yes, Pixel Displacement
     
    OfficialHermie likes this.
  5. OfficialHermie

    OfficialHermie

    Joined:
    Oct 12, 2012
    Posts:
    585
    @Grimreaper358 Can you recommend a tutorial on how to use this option?
     
  6. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Not sure if there's any tutorials on this but it's pretty simple.

    - Enable Pixel Displacement
    - Enable Depth Offset
    - Add your Height map
    - Set the Amplitude

    That should be if for Parallax Occlusion

    upload_2019-7-19_12-25-51.png

    Difference between Depth offset on and Off

    Left Off - Right On (it will help to blend intersecting objects together)
    upload_2019-7-19_12-30-54.png