Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Bug in Shadows Rendering with Alpha Clipping

Discussion in 'Universal Render Pipeline' started by C0lonnello, Jun 15, 2023.

  1. C0lonnello

    C0lonnello

    Joined:
    Nov 7, 2022
    Posts:
    24
    Hi

    We built some trees with branches and leaves that are using alpha clipping. I had to update the project from 2021.3.xx to 2022.2.xx because in the previous version the WebGL data caching has some issues and doesn't work in built applications.

    Since when I updated the project to 2022.2.xx I have a clear problem with these trees shadows where the alpha clipping isn't working properly. In the webGL build, the shadows are coming from the not-clipped branches, having this result:
    Screenshot (79).png

    In the Android/VR application it is even worse, since the shadows changes depending by angle, also from the Scene View other than the Game View. These are the two shadow states that occour when changing camera angle:
    Screenshot (76).png Screenshot (78).png

    Does anyone have any experience on this ? Any workaround ? The one only thing I can think about is having two trees for every tree, where one is without alpha clipping, renders only shadows, and the other one is the visible tree with alpha clipping and no shadows.
    It is DEFINITELY not so professional and i'm looking for a better way.
     
  2. TwiiK

    TwiiK

    Joined:
    Oct 23, 2007
    Posts:
    1,729