Search Unity

Help Wanted LWRP. Shader Graph. Custom shader casts no shadow

Discussion in 'Shader Graph' started by fotalik, May 24, 2019.

  1. fotalik

    fotalik

    Joined:
    Sep 23, 2017
    Posts:
    22
    Hello!

    I created an empty Graph by clicking Create -> Shaders -> PBR Graph. I created the material for this shader and assign it to my game object, but the object does not cast a shadow. If I assign LWRP Lit material by default, then everything works and the shadows are dropped, but with a custom shader there is no.

    Has anyone come across this?

    upload_2019-5-24_14-44-24.png upload_2019-5-24_14-45-26.png
    upload_2019-5-24_14-48-4.png

    LWRP Version - 5.6.1
    Shader Graph - 5.6.1

    I cannot update the package versions because this is an AR Foundation project.