Get Scability in Material

How can i get r.ViewDistanceScale in material editor. Is there any node or write something in custom shader node. Any idea?

Hi again, I have resolved this problem with using material parameter collection. But if there any different solution (for exam: custom material expression) i would like to know.