Search Unity

Question Unwanted white pixel artifact along mesh edges when in front of a transparent URP material

Discussion in 'Shaders' started by Meta_Bird, Mar 24, 2023.

  1. Meta_Bird

    Meta_Bird

    Joined:
    Apr 25, 2020
    Posts:
    16
    Hi,
    I'm getting an unwanted white/grey pixel outline along the edges of a mesh when it is in front of an object with a transparent material (in URP 14.06). The mesh's material does not use a texture.

    Below is a mesh with an unlit material in front of a URP lit shader set to Transparent:
    upload_2023-3-24_10-22-5.png

    Below is the same mesh in front of a URP lit shader set to Opaque:
    upload_2023-3-24_10-22-23.png

    This white/grey outline effect is more clearly visible if I turn off anti-aliasing and remove cell shading from the shader:
    upload_2023-3-24_10-26-46.png

    Any tips on where I could look to minimize this would be greatly appreciated.

    Thanks,
    Daniel
     

    Attached Files: