Polygon Edge Not Right

Hello, I simply give a polygon an edge, but as you can see in the picture, the line or edge is not smooth. I also tried this on objects other than polygons, but the situation did not change. Can you help with the problem?

rounded rectangle | Babylon.js Playground (babylonjs.com)

1 Like

The issue is not in drawing the edges, as such, but in how they are draw relative to the polygon material.

When the material is fully transparent you can see all the edges drawn as they should be.


Thank you for your answer. This is very interesting and it’s a pity that such a mistake happened. The code I used to solve the problem: polygon.material.alpha = 0.99;