Search Unity

Question URP Decals on transparent surface

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

  1. Kinggrass

    Kinggrass

    Joined:
    Jun 7, 2016
    Posts:
    72
    Hello everyone,

    I can't figure out how to project decals on transparent surfaces.

    I need to project a decal on a surface which can not be seen by a certain camera or can be seen but is transparent.

    Does someone know how to do this?
    In HDRP it is possible to check the setting "Affect Transparent" on the Decal Projector.

    Best Regards
     
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    Hi, maybe it's not a supported feature in URP.

    Decals need scene depth to project onto other objects correctly. But transparent objects (depth write enabled in shader) won't appear in URP's depth texture even though the Copy Depth is set to after transparent.

    You can submit an idea on URP roadmap page but I'd suggest looking for a compatible 3rd party decals asset or you'll have to wait a few years.