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

That’s a great solution!
For the shadows problem, you can have a ShadowsPass node and use TAA only in the render pass.