Is there a way to calculate the tangents of a model in the material editor?

Yeah, I know this thread is three years old, but I had to solve the exact same problem today and couldn’t find anything useful. So just for the record: get absolute world position DDX/DDY cross product, normalize it and plug the result into a dot product with camera vector.