How would I remove those weird looking edges ?

6115157--666032--upload_2020-7-22_0-55-40.png
here, you can see that in my mesh (that is being generated on runtime with marching cubes) I get those weird looking half-sharp half-smooth edges. How can I make it so that there is only sharp edges ?

Note : It would be very hard for me to modify the triangles of the mesh (or at least the indeces of the vertices in the triangles) since those triangles come for a large hard-coded list of triangles.

Figured it out, had to make it so triangles dont have vertices in common.