How to rotate a vector by the object's rotation [in Material]

Use transform node from local to world.