Search Unity

Render features & Depth prepass

Discussion in 'Universal Render Pipeline' started by Hysparions, Mar 11, 2021.

  1. Hysparions

    Hysparions

    Joined:
    Jan 7, 2019
    Posts:
    29
    Hello everyone,

    I've been struggling for a while on this so I would be pleased to be helped on this. I use two render features with stencil test to draw this amazing outline. But then, I tried to enable MSAA, which leaves URP unable to support depth copy, see this thread : Need clarification on URP's use of the depth prepass

    When launching the frame debugger, it seems that objects rendered with render feature only in custom layers are not considered by the Depth prepass and it results in those blurry artifacts with depth of fields. I really need MSAA because I use bright and cartoonish colors. any idea to make depth prepass render thoses objects ? :)