Hello. In my game, images are dynamically loaded from the server, and in order to avoid a black background of transparency in png files, I use this code
material.diffuseMap = texture
material.opacityMap = texture
material.blendType = 'alpha'
material.alphaToCoverage = true
alphaToCoverage property is only supported by webGL2.0, so in the instagram browser, the background is black instead of transparency. I have an idea to calculate the average color and replace the black background with the average color, but I can’t understand whether it is possible to change this black background at all. Tell me how this is done.