Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Access Depth texture in HDRP shader

Discussion in 'High Definition Render Pipeline' started by nasos_333, Mar 22, 2020.

  1. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,291
    Hi,

    How do i access the camera depth texture in a custom shader ?

    I dont want to include any HDRP libraries, just read the depth texture, is this possible ?

    I had done this in 2019.2 using the DepthPyramidTexture with adding only minimal libraries and now in 2019.3 is no longer working and there seems to not be a DepthPyramidTexture anymore as well.

    Thanks for any insight on this