Yes, I see. I got this code from your latest standardshader on GitHub, but it doesn't work for me in VS. maybe there are some limitations that make this work only in PS?
Edit: I'll post a screenshot with more detailed explanation tomorrow, it's too late today. Thank you.