drei icon indicating copy to clipboard operation
drei copied to clipboard

Fix: renderOrder of <Svg> meshes

Open joaomelorodrigues opened this issue 1 year ago • 3 comments

Why

<Svg> component was showing a weird z-fighting on camera orbit

What

Fixed the render order of the meshes.

Discussion here: https://discord.com/channels/740090768164651008/741751532592038022/1227336884255064195

joaomelorodrigues avatar Apr 25 '24 19:04 joaomelorodrigues

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2024 2:53pm

vercel[bot] avatar Apr 25 '24 19:04 vercel[bot]

After testing on more use cases, this seems to not be a good solution. Using renderOrder like that makes wierd behaviour of SVG showing on top of everything in the camera planes. Also not sure how to fix this.

joaomelorodrigues avatar Apr 27 '24 14:04 joaomelorodrigues

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

codesandbox-ci[bot] avatar Apr 27 '24 14:04 codesandbox-ci[bot]