Visual artifacts in HighlightLayer

Hello,
in our team we have a very specific scene which contains of many thin objects next to each other and we would like to use the babylon HighlightLayer to outline them.

However in some specific camera angles and zoom levels the models become almost invisible which creates various visual artifacts in the HighlightLayer. The issue is shown in the following PG: https://www.babylonjs-playground.com/#2FFOYQ#31.

Could you please help us solve the issue, given a requirement that we can’t make the models thicker? Maybe there is some setting that we’re missing or should try a different approach for outlining?

Thanks.

I’m not sure much can be done regarding the highlight layer, as I can see it it’s behaving as expected.

You can try to use the render outline instead:

https://www.babylonjs-playground.com/#2FFOYQ#32