I am trying to get shadows working in Unity 6 using custom shading. Unity supplies the following shader example:
I do not get soft shadows when using the example code.
I have reviewed the Shadows.hlsl code and checked if the MainLightRealtimeShadow() is early-ing out but that is not the issue. It seems to me that the shadow parameters are not set somehow.
Hey man, hope you figured it out, but if not, I had this problem myself for a while, and I solved it by inspecting Unity’s Lit shader. What they do is use all the pragmas, so try adding the following: