AWTTextureIO premultiplying colors with alpha?
Posted by Robert on Jul 16, 2013; 7:37pm
URL: https://forum.jogamp.org/AWTTextureIO-premultiplying-colors-with-alpha-tp4029601.html
Hi,
I need to be able to create textures from BufferedImages but I'm running into this problem where the RGB components are premultiplied by the alpha component. This is not the behaviour I desire. This is the code I'm using:
TextureData td = AWTTextureIO.newTextureData(gl.getGLProfile(),bi, config.useMipMaps);
after this call when I check the byte array in the TextureData object, the RGB values have all been premultiplied.