Login  Register

Re: Premultiplied Textures

Posted by Sebastian Greif on Jul 30, 2012; 11:01am
URL: https://forum.jogamp.org/Premultiplied-Textures-tp4025659p4025701.html

I know how to use alpha blending in this way. And it would be no big deal to change my code to use
inGL.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR);
instead of
inGL.glBlendFunc(GL_SRC_ONE, GL_ONE_MINUS_SRC_COLOR); (which i have to use in case of premultiplied alpha).

I only wanted to know if JOGL changes its default behaviour when loading png images as texture.
As written in the javadoc ot should automatically create premultiplied images everytime, and so it does in the past.

I have to change a lot of code to chnage my alpha blending. SO i just wanted to be sure.

Thanks in advance
Sebastian