It’s a typical z-fighting issue, which is not so easy to correct…
One can use the
zOffset parameter of the material used to draw the lines to mitigate the issue.
As this material is not directly exposed, you will need a small hack:
batten.edgesRenderer._lineShader.zOffset = -3;
_lineShader could be made visible to the outside? Or simply a method to change the
zOffset value on the
It does work to a degree, but depending on the view angle you will still experience disappearing edges. You can play with the
-3 value, but you will also see some artifacts with values too low.