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

Bug Decals not rending on one mesh but renders on others?! Even renders on reflection?

Discussion in 'General Graphics' started by Slight0, Mar 2, 2023.

  1. Slight0

    Slight0

    Joined:
    Dec 6, 2013
    Posts:
    28
    Edit: I solved the issue. Turns out "Receive Decals" wasn't enabled on the road shader, doy.

    I have a large road mesh (just a rectangle) and a city with curbs built around it. Decals aren't showing up on the road, but will show up anywhere else (sidewalk, buildings, etc).

    Not showing on road mesh

    upload_2023-3-2_17-39-6.png

    Shows on sidewalk mesh

    upload_2023-3-2_17-39-57.png

    Even shows up on the reflection of the road, but not the road!


    upload_2023-3-2_17-38-41.png

    Full road mesh (zoomed out)

    upload_2023-3-2_17-43-41.png


    Decals are clearly enabled in the HDRP render settings and so on. I've tried changing the road shader to the sidewalk one and same issue. Is there a size limit?

    Edit: It might actually be the shader somehow but I'm not sure what it's doing. I'm not the author of this shader so I have no idea how to debug it. Can a shader overwrite a decal somehow?

    Edit2: It's not the shader I don't think. I set the material's shader to HDRP/Unlit with the road's base png texture and still no decals will render on it.
     

    Attached Files:

    Last edited: Mar 2, 2023