Getting Shadows from this Shader?

So I’m not much of a Shader guy. I do most of my shaders in Strumpy shader editor because of this.

I’ve read through many posts and documents from unity on the subject. I can’t seem to figure out how to add shadow casting to this shader.

So far it is a perfect shader for doing hair. I would love a specular control map, but even as it is, it is great. The only problem is it doesn’t cast shadows!

I would appreciate any help.

Try adding…

Fallback “VertexLit”

…just before the very last }

Wow.

That was so easy I feel like a total fool for having to ask. Thank you Farfarer.

I need to learn more about shader coding.

Cheers!

No worries, took me ages to find that one little line that makes shadows work when I first started messing with shaders :stuck_out_tongue:

Really cool concept art for your project, btw - digging the style :slight_smile:

Thanks, should have some models and more concept art in a few weeks once I get my shaders up and running!

Cheers again for the help.