Login  Register

Re: Premultiplied Textures

Posted by Sebastian Greif on Jul 29, 2012; 8:19pm
URL: https://forum.jogamp.org/Premultiplied-Textures-tp4025659p4025695.html

I thought that jogl uses premultiplied alpha for textures as default.
It always does in the past.
When i load a texture with alpha values with the TextureIO of jogl it transforms the texture to be premultiplied as default in the past.
Take a look at the javadoc at
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/texture/Texture.html

"To make things easier for developers, the Texture class will automatically convert non-premultiplied image data into premultiplied data when storing it into an OpenGL texture."

Or is this not true anymore?
I have simple png images which alpha channel e.g. to mask round corners.
In the past i always setup blending equation to match premultiplied alpha textures. But in the new version this does not work anymore.
So does jogl changes the way it loads the textures?