The easiest method would be to just duplicate the object, make it use opaque and alpha clip, then set the shadow mode in its mesh renderer to “Shadow Only”.
Can you tell me? How can I add my code to .shadergraph file? Is it possible?
Maybe I need to compile it in .shader? But compiled files give errors and are not a file with the correct shader code, as I understand.
I created a Custom Function, created nodes of Light source - but it doesn’t work to attach them to the Color output in Unlit - there is no shadow and everything looks terrible (I tried Lerp, Multiply, Add, Blend).
How did you get this working? Did you manage to get unlit graph to pick shadow attenuation of main or other light? All of those tutorials seem to suggest it can work but none appear to actually work, shadow attenuation is always 1!!