Hi,

Is there a way to load a texture that is NOT alpha pre-multiplied?

I'm using android.graphics.Bitmap to load PNG files and then
GLUtils.texImage2D() to specify texture image. The result is that
texture colors are automatically pre-multiplied with alpha.

For simple blending you use glBlendFunc(GL_ONE,
GL_ONE_MINUS_SRC_ALPHA) instead of glBlendFunc(GL_SRC_ALPHA,
GL_ONE_MINUS_SRC_ALPHA). But sometimes you need to keep your color/
alpha untouched.

Thanks,
David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to