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

Depth Mask in HDRP

Discussion in 'Graphics Experimental Previews' started by DotsCreative, Mar 22, 2020.

  1. DotsCreative

    DotsCreative

    Joined:
    Jul 3, 2018
    Posts:
    17
    Hi! I want to make a depth mask on terrain in HDRP. I know how to do it with transparent objects through custom pass, but I haven't gotten it to work with terrain or opaque objects. When I set the injection point to "Before Rendering" the object with the depth mask gets black, but the part of the terrain that is blocked is still not masked.
    What do I do wrong?
     
  2. jiuweishenhu

    jiuweishenhu

    Joined:
    Apr 12, 2017
    Posts:
    7
    I want to know either.