Home » Developing U++ » U++ Developers corner » OpenGL texture issues
Re: OpenGL texture issues [message #40716 is a reply to message #40711] |
Sun, 08 September 2013 12:26   |
|
mirek wrote on Sun, 08 September 2013 01:35 |
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);
|
I have to admit I didn't even think about it But docs says it is exactly prempultiplied mode.
If it comes to textures of power of 2 it is true for opengl es - so for all mobile devices. On desktop it is not required.
[Updated on: Sun, 08 September 2013 12:26] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 03 14:30:11 CEST 2025
Total time taken to generate the page: 0.02339 seconds
|