Port Drei edges over to babylon

Drei has added functionality for edges and outlines, which run as a shader instead of geometry (if I understand it correctly)

I have big performance problems with babylons current edges implementation, because of large scenes and lots of edges.

so this would be awesome

https://codesandbox.io/p/sandbox/edgesgeometry-iup24

https://github.com/pmndrs/drei?tab=readme-ov-file#outlines

it looks like Threlte has also started an implementation for this.

How hard would it be for us to port it to babylon?

This looks like there are plenty of artifacts in there.

Would screen space curvature be a good fit there ? https://playground.babylonjs.com/#5VAG0A#2

1 Like