Transparent PNG as texture


Hi guys, I’m new here and recently I’m using, until now everything is well but I have a problem with png images with transparent areas as texture on a mesh. I’m building a 2.5D game with h3d, but, It’s possible add png as a textures on meshes (grid primitives) with transparent areas or what different alternatives would I have?

Thankyou guys


You need to set blendMode of the mesh Material to Alpha (or based on what you need - AlphaAdd or AlphaMultiply). By default it does not perform alpha blending in h3d, hence causing transparent texture parts being non-transparent. E.g. mesh.material.blendMode = Alpha