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

Question Alpha clipping support for Depth Normals Texture? I have problem with my outline.

Discussion in 'Universal Render Pipeline' started by MyHandStudio, Mar 2, 2023.

  1. MyHandStudio

    MyHandStudio

    Joined:
    Sep 23, 2019
    Posts:
    2
    Hi!
    I'm trying to create outline based on edge detection from the depth texture and depth normals.
    The problem is, when I want to detect the edge of the normals to draw outline on the sharp edge of the object, the object with alpha cutout texture detect the edge from the mesh itself, not the edge of the alpha cutout.
    Here are the screenshots:
    UnityOutlineProblems_DepthOnly.png UnityOutlineProblems_DepthNormals.png UnityOutlineProblems_LayeredDepthNormals.png

    I'm using the outline created by Chrisloop on github. Here are the link for the source.
    https://github.com/chrisloop/WetShadows

    Any solution for this?