Home » Developing U++ » U++ Developers corner » OpenGL texture issues
Re: OpenGL texture issues [message #40711 is a reply to message #40710] |
Sun, 08 September 2013 07:35   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
mirek wrote on Sun, 08 September 2013 01:30 |
- it looks to like OpenGL expects textures in non-premultiplies format. In that case we need to unmultiply Image, right? (I have not seen any such thing in CoreGL/resources.cpp, but I might be missing something).
|
Ha, 2 minutes after posting, I have found in CoreGL
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
which, AFAIK, should exactly switch OpenGL to premultiplied alpha mode, right? 
Mirek
|
|
|
Goto Forum:
Current Time: Sat May 03 14:27:24 CEST 2025
Total time taken to generate the page: 0.00851 seconds
|