Search Unity

Question URP Partially Transparent Shadows?

Discussion in 'Universal Render Pipeline' started by SuperUltraHyper, Dec 4, 2020.

  1. SuperUltraHyper

    SuperUltraHyper

    Joined:
    Sep 7, 2015
    Posts:
    112
    Simple question:
    Does URP support shadows from alpha masked textures?
    Where can I find info on this?

    In the attached image you can see that the alpha masked transparency of the helicopter blade's shadow is looking terrible. Before we upgraded to 2020 / URP it was looking great / correct.

    Thanks for any help you can provide!

    upload_2020-12-4_16-35-57.png
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    Alpha clipped only. What you can do if you want to keep your nice alpha blend is create a child of the object with the same mesh and then pick alpha clip material and set threshold to desireable value, then set it to be "shadows only", then disable shadows on the main object.

    Edit: Also, in the Inspector for your Light, you can reduce shadow strength to have them lighter / blend more and not be so black.

    Edit: I realize this applies more to something like a tree/fence/etc with holes in it or whatever where you want smooth alpha blending but still want shadows.. as to variable shadow strength by alpha - that's something I'd like to know as well.
     
    Last edited: Dec 4, 2020