What is the correct way to pass a lights direction to a material?

I’m trying to pass the direction of my directional light to a material instance.

How do I turn the lights rotation into a Vector3 (LinearColor) value that can be passed into the material instance?

Thanks.