Search Unity

Question [HDRP 10.2 / Unity 2020.2] How to upgrade shader code to support decals properly?

Discussion in 'High Definition Render Pipeline' started by xVergilx, Jan 7, 2021.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    I've got an issue with updating shaders, referring this manual:
    https://docs.unity3d.com/Packages/c...2/manual/Upgrading-from-2020.1-to-2020.2.html

    I've added #pragma multi_compile _ WRITE_DECAL_BUFFER to DepthOnly pass, and fixed errors regarding angle / vtxNormal parameter, however decals still doesn't show up on those custom shader surfaces.
    Lit shader surfaces draw decals just fine.

    Decal layers disabled, and Rendering layer mask set to everything

    Enabling "Depth Prepass within Deferred" fixes the issue, but that introduces full depth prepass back (if I understand that correctly).

    What am I missing?
     
  2. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    438
    Really interested about this also