Other ways to detect edges?

The material i’m using is a masked one atm. I am unfortunately unable to manually paint vertex colors as the material will be used on many different meshes