drei
drei copied to clipboard
Fix: renderOrder of <Svg> meshes
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
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 |
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.
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.