Login  Register

Re: Premultiplied Textures

Posted by Demoscene Passivist on Jul 29, 2012; 9:11pm
URL: https://forum.jogamp.org/Premultiplied-Textures-tp4025659p4025697.html

I'm using .png with alpha-channel myself and everything works fine here.

To load the texture I use:

Texture tTexture = TextureIO.newTexture(new BufferedInputStream((new Object()).getClass().getResourceAsStream(inFileName)),true,null);

And the blending mode is:

inGL.glEnable(GL_BLEND);
inGL.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR);