
I have an image as shown above. When I use the drawTextureRotated function, the transparent areas of the image are always rendered as white. I have tried using new Color(0, 0, 0, 1), and while the transparent areas are rendered correctly, the image itself turns black. Is there a way to render a PNG image with transparent pixels properly? Am I missing any logic?
- load png by loadTexture function.
assetManager.loadTexture(url)
then texture = assetManager.require(url)
- SceneRenderer.drawTextureRotated(texture, ...args)