How to set transparency of PNG

Hello guys,

I have so problems with PNG textures without backgrounds and transparency.

I’m trying to put the transparency of a PNG material to 0.5 but as you can see in my PG : https://www.babylonjs-playground.com/#YDO1F#134

It making some weird things with the original background transparencies of the PNG.

not sure if I have to play with the material or with the transparency of the mesh directly.

1 Like

One thing you can do, is setting both the diffuseTexture as well as the opacityTexture:
https://www.babylonjs-playground.com/#YDO1F#135

7 Likes

Oh Thank you very much Raggar! :smiley: It’s totally what I need it!!