Learn how to use the BoundingBoxBased_0-1_UVW material node in Unreal Engine 5!
In this tutorial, we explore how this node generates a normalized 0-to-1 gradient across any mesh’s bounding box—regardless of size or UV mapping—and how you can use it to build a directional dissolve/erosion shader.
https://dev.epicgames.com/community/learning/tutorials/nORKl/unreal-engine-learn-the-boundingboxbased_0-1_uvw-material-node-in-ue5-complete-guide-to-ue5-material-nodes