Black edges on mesh with a transparent texture

Hi guys,

I ran into a problem and I can’t seem to figure out why this happens and how to fix it. I have made this playground to explain my problem:
https://www.babylonjs-playground.com/#KGQCED#1

What I want and think should happen is that everything should be white. Instead, I get those edges that surround the non-transparent part of the texture.

Both hasAlpha and opacityTexture (together or individually) produce the same result.
How can I get rid of those?

Any help is appreciated.
Thanks.

This is because of the texture filtering:
https://www.babylonjs-playground.com/#KGQCED#2

1 Like

Aha, I knew I was missing something.

Thanks a lot man!

1 Like