Alpha Cutout Shader Causing Graphic Issue

Technically the model shows up correctly, but the second you look around in-game the material causes a graphic issue. I’d call it visual tearing. The effect is a bit like when a window would freeze in Win95 and streak across everything when you moved it.

You can see where there should be transparency it’s instead used the closest colored part from the model.

I’ve tried to move in one direction for the following screenshot:

What am I missing?

Thanks for your help!

I’m assuming this is a shader you’ve written yourself, because to me this looks like what happens when you use alpha blending instead of alpha testing on a opaque queue material.

If you’re trying to do an alpha cutout / alpha tested shader and Blend (like Blend SrcAlpha OneMinusSrcAlpha) appears anywhere in your shader, you’ve probably made a mistake. An alpha cutout vertex fragment shader will always have either clip() or discard somewhere in the shader. If it doesn’t, you’ll see something like what you’re seeing above.