I created an empty Shader Graph by clicking Create -> Shaders -> PBR Graph.

I created the material for this shader and assigned it to my game object, but the object does not cast a shadow.

If I assign the default LWRP Lit material, then everything works and the shadows are dropped, but with a custom shader there is no shadow.

How can I make my custom shader material cast shadows?

  • \$\begingroup\$ I have not been able to reproduce the issue you describe. Creating a new PBR shader graph, leaving it unchanged, and assigning it to objects in my scene has not interfered with their shadows. A similar question on UnityAnswers suggests that this might be a bug you can resolve by deleting & recreating your lightweight render pipeline asset. Have you tried this? \$\endgroup\$ – DMGregory May 25 at 21:50
  • \$\begingroup\$ forum.unity.com/threads/… Hi, More information about this \$\endgroup\$ – Nikita Goncharuk May 27 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.