Hi All,
I’m having a problem as described in the title where if I set texture.alphaBlending = true;
The z-order / rendering order becomes incorrect ( See Screenshot ).
If I don’t use alpha blending but instead set alphaThreshold to 0.8 for example it works, but the sem-transparent pixels on the edge are black and when the camera moves there is horrible ‘jaggedness’ on the affected Sprites. Code below >>
objTextureMaterial = new TextureMaterial( new BitmapTexture( spritesheetObject.bitmap.bitmapData ), true, false, true );
//objTextureMaterial.alphaThreshold = 0.8;
objTextureMaterial.alphaBlending = true;
objTextureMaterial.smooth = true;
materialDictionary[ materialName ] = objTextureMaterial;
Does anyone know why this is happening? And if so how to fix it please?
Thanks for any help.
Matt