Can mesh outlines be rendered in front of everything else?

Hey, similarly to this highlight demo: https://www.babylonjs-playground.com/#2338DN#5

I would like to be able achieve the same effect with the neat, crisp renderOutline Babylon.js Playground

Is this possible?

The outline has the same render order as the mesh, but you can render the outline last using a second mesh like below. :slight_smile:

1 Like

I was considering something like that, but I was worried there might be performance issues especially if I’m loading in GLTFs. If there’s no other way right now I might have to look further.

Thanks for spinning up this demo :slight_smile:

1 Like

You can also try using isStroke to get the highlight demo to create more of a solid line like below. :slight_smile:

4 Likes

This is exactly what I was after, thank you so much

2 Likes