Unity3D - How do you turn off "receive shadows" in a shader made with Shader Graph?

Viewed 9609
2 Answers
  1. Go to your Graph.
  2. Below Properties, there is a section called Keywords.
  3. Add a new Keyword, set Reference to _RECEIVE_SHADOWS_OFF, Definition Shader Feature, Scope Global and Default True.
  4. Go to your material, click on three dots in the right upper corner of the Inspector and select Debug
  5. Set Shader Keywords to _RECEIVE_SHADOWS_OFF

That should do it.

When you enable the Debug mode of Inspector, you can see the checkbox of Receive Shadows just right bellow the Renderer.

EDIT:Unfortunately it's not working. and maybe a deprecated interface.

But the keyword method could be more handy if you'd like to expose it. You can check the checkbox of the keyword and it turns on and off quickly. enter image description here

Related