In this quick and easy tutorial I’m answering a frequent shader question, which is: how to change material parameters based on the distance to the camera?
https://dev.epicgames.com/community/learning/tutorials/dG0e/unreal-engine-unreal-5-3-material-effects-based-on-camera-distance