Why my GLTF doesn't respect the render depth order

Hi, I’ve created a little demo to load my problematic GLB file.
using GLTF loader.

And got the artifact like the image below.

I doubt how is this possible and is there any way to get around it?

I know the render order (depth position) of each object may not be sorted properly.

But I thought it shouldn’t be the case since each object render call are sharing the same depth buffer. Or I’m misunderstanding something?

The most common cause of this issue is when your materials use alpha blending (material.transparent = true) without actually being transparent. If you’re creating this model in Blender, you’ll want to set “Alpha Blend: Opaque” in the material settings.

1 Like

Yes, That’s exactly the case.
Thanks so much.

1 Like