How to get Light Dir in suf function?

Hey guys, I am having a total brain fart. Whats the simplest way to get the light direction vector from inside the surf function of a surface shader?

Do I need to declare my own lighting model for this?

Yes, you should do lighting stuff in lighting function. The surface function is meant to define material properties which can be used in the lighting function.

Ah, so i was doing things backwards, I guess that makes more sense :stuck_out_tongue: