Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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.