Search Unity

Transparent Material not casting shadows

Discussion in 'Universal Render Pipeline' started by HadyM, Jun 14, 2022.

  1. HadyM

    HadyM

    Joined:
    Apr 13, 2020
    Posts:
    1
    Hello,
    I recently upgraded a project from SRP to URP but now transparent objects no longer cast shadows (even when alpha is 1). There's also weird artifacts when objects are slightly transparent but I only see the odd artifact in Unity 2022 (Apple Silicon). Unity 2021 LTS (Apple Silicon) versions don't seem to have this issue.

    When the material is opaque it behaves normally:
    Opaque.png

    But when it's transparent it doesn't cast a shadow even when alpha is 1:
    Transparent.png

    Here's the material's property's visible in the inspector:
    Material Properties.png

    Also here's the weird artifact I mentioned earlier which I believe to be a bug
    it won't let me upload more files because I can't upload more than 5 (even though I only uploaded 3) so here's a link instead: https://share.cleanshot.com/hnJGKc. As you can see even when the alpha is 0 the object is still visible.
     

    Attached Files:

  2. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    Odd, I am wondering the same thing, so far can't find anything when googling or fiddling with settings...

    Bye,

    Jean
     
  3. AlexGone

    AlexGone

    Joined:
    Feb 11, 2022
    Posts:
    5