Hey guys! Was wondering if Unreal had any material functions for detecting edges so you can do stuff like edgewear.
3 Likes
Did you find anything that works? I only found some that i couldnt configure myself to work
Distance to nearest surface.
It’s a bit expensive and the distance is driven by what is essentially water depth (you can’t just take one plane).
Otherwise you use custom textures which is always a better option.
Make a quick postprocess to turn water white, landscape black. Set up a screen render and take a picture to an RT.
Save it out and use away in your materials.
One of the easiest ways to do edge wear is with a curvature mask as a starting point, you can either bake a texture for each mesh or use something like this Curvature